This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Install goes to network drive


> I am installing "cygwin" on a XP box. I have downloaded the setup and
> files to my local c:/tmp/files
>
> When I run the setup, all appears good. I point to c:/cygwin and tell
> it to find files from c:/tmp/files. The install completes fine but
> when I type a cd ~ (show my home directory) the terminal shows my home
> here: /cygdrive/h  which is a mounted server. I have done this three
> times, and each time it does this. I checked all environment
> variables. I just want my home to be /cygdrive/c so I can add a
> .bashrc and get rolling.

Your home directory is determined by the contents of /etc/passwd, just
as it would be on a UNIX/Linux system.  mkpasswd is run during
installation to generate /etc/passwd.

You can run the command 'mkpasswd -l' to see what was generated if you
are not in a domain, and 'mkpasswd -d' to see what was generated if you
are in a domain.

Use 'id' to see your user name and then look at /etc/passwd to see what
the setting is for your account, the easiest way to do this is with
'grep
user /etc/passwd'.  Your home directory is the second to last field.

You can edit /etc/passwd and change your home directory in this file, it
would usually be /home/user, but you can set it to anything you want.

Brett
----------------------------------------------------------------
Brett C. Serkez, Techie


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]