I've installed cygwin on my work computer. The problem is that my my computer is part of a domain and cygwin is using my network home folder as my home folder every time it launches. I would like to have my home folder set to a folder on my local machine instead.

How do I do this?

link|improve this question

75% accept rate
feedback

2 Answers

up vote 3 down vote accepted

First of all make sure your domain user is added to /etc/passwd:

mkpasswd -d >> /etc/passwd

Then just edit /etc/passwd and let it point to your desired directory. For example my entry looks as follows:

myuser:unused:11555:10513:U-DOMAIN\myuser,S-1-5-21-3223550679-1857247031-121334384-2459:/cygdrive/c/Users/myuser/AppData/Roaming/cygwin/home:/bin/bash

This places the cygwin home directory within my roaming profile folder within my user profile.

link|improve this answer
feedback

You can also set $HOME environment variable in Windows.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.