How do I change the default home directory after I fire up cygwin?
marco atzeri
marco.atzeri@gmail.com
Tue Jan 22 16:03:00 GMT 2013
On 1/22/2013 4:52 PM, Yves wrote:
> Hi, this is my issue:
>
> I start up cygwin and do pwd, and this is my home directory.
> $ pwd
> /cygdrive/h
>
> But, I don't want it to be in /cygdrive/h. So, what gives? I've run the
> mkpasswd command like so (while in my /home/<my name> directory):
> mkpasswd -l -p "$(cygpath -H)" > /etc/passwd
>
> At that point, I close my cygwin window and open it again... and same thing
> when I run pwd. How do I make cygwin think and start in /home/<my name>?
> I've even mucked with the /etc/passwd for my user account and STILL no
> result.
> Very confused...
Dear Yves
what is the output of
$ grep <your name> /etc/passwd
on my case, as example:
$ grep marco /etc/passwd
marco:unused:1008:544:Marco Atzeri, [cut] :/home/marco:/bin/bash
so /home/marco is my home directory
please note that cygpath -H is not the same
$ cygpath -H
/cygdrive/c/Users
Regards
Marco
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list