This is the mail archive of the cygwin@cygwin.com 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: New setup: User not found? /cygdrive/h as default home directory?


Hans,

Look at the last number in the SID (last comma-separated entry in the
gecos (fifth) field of your /etc/passwd line).  For example, on my
machine:

igor::1001:544:Igor Pechtchanski,U-igor,S-1-5-21-1681344628-1719607816-643004363-1001:/home/igor:/bin/bash
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The underlined part is the SID.  The sequence of digits after the last "-"
(dash) is 1001, so my real user id is 1001.  In your case, it will be some
large number.
	Igor

On Tue, 3 Jun 2003, Hans Deragon (LMC) wrote:

> Mmm...  stupid question, but how does one get the full user id on a
> windows machine?  I search Google groups, but could not find any
> reference to this.  If my user id is not 18544, how can I find which one
> it is?
>
> Sincerely,
> Hans Deragon
>
> -----Original Message-----
> From: Pierre A. Humblet [mailto:pierre.humblet@ieee.org]
> Sent: Monday, June 02, 2003 8:10 PM
> To: cygwin@cygwin.com
> Subject: Re: New setup: User not found? /cygdrive/h as default home directory?
>
> On Mon, Jun 02, 2003 at 02:07:11PM -0400, 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
>
> Hans,
>
> here is another possibility in addition to what Igor already wrote.
> You may have a uid > 64k. If that is the case, edit /etc/passwd and
> change it (the next version of Cygwin will use 32 bit uids).
>
> > 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
>
> If you installed as a domain user, the installation program created an
> entry for you with the command "mkpasswd -l -c".  It uses
> HOMEDRIVE/HOMEPATH to determine your home directory.  Run "mkpasswd -l
> -c" and look at the last line to see who Cygwin thinks you are.
>
> Pierre

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


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