Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 2 Jun 2003 14:40:55 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Hans Deragon (LMC)" cc: cygwin AT cygwin DOT com Subject: Re: New setup: User not found? /cygdrive/h as default home directory? In-Reply-To: <7B2A7784F4B7F0409947481F3F3FEF830A74482F@eammlex037.lmc.ericsson.se> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 2 Jun 2003, Hans Deragon (LMC) wrote: > Greetings. > > Long time user of cygwin. Got a new job and off course, first thing I > do is install it. However, I am encounting a problem I never had in > previous installations. The installation was successfull, but when I > started a command line window (cygwin.bat), I got the following: > > id: cannot find name for user ID 18544 > mkdir: cannot create directory `/cygdrive/h': No such file or directory > cp: cannot create regular file `/cygdrive/h//.bash_profile': No such file or directory > bash: cd: /cygdrive/h: No such file or directory > > There are two problems here. First, cygwin cannot find the name of my > user. Is this because my Window account is not set properly? I suspect > this, but I have not administrator power on my machine and I am not a > Windows guru. This is a problem because when I use ssh it tells me to > go away because I have no name. Is there an environment variable I can > set to trick ssh to working? > > The second problem is the attempt to create the /cygdrive/h . In the > /etc/passwd file, by default the /cygdrive/h directory was listed there > as the home directory for my user. I do not understand why because > drive h does not exist on my system, and even if it did, I would not > have wanted my account to be created there. Nowhere in the installation > process was I asked for the default home directory. I fixed this by > editing the /etc/passwd and changed the home directory to /home, which I > believe should be the default and was in the past. This is not a > problem for me anymore, but I am reporting it because I find this > /cygdrive/h default a bit odd. > > BTW, I searched the mailing list archive, but could not find anything > related to these problems. If this was discussed previously, I am sorry > for the repeat; my search keywords where probably poorly choosen. > > Thanks, > Hans Deragon The message that it cannot find user name for your user id means that your /etc/passwd file was not created correctly. The high value of the user id indicates that you logged in as a domain user. If you've installed as the same user, it's a bit surprising that the default settings didn't work. If you've installed as a different user, you'll need to do "mkpasswd -u YourUser -d >> /etc/passwd". As for HOME being set to /cygdrive/h, you probably have a HOME variable in your Windows environment that points to "H:" (left over from some program installation, most likely). Most of the above is guesswork. A more definite answer could be given once you post the output of "cygcheck -svr" (as an uncompressed text *attachment*, as indicated in ). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/