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: UID not correct - not getting domain's UID


On Wed, 7 Sep 2005, Andrew DeFaria wrote:

New contract, new employer, new problems. Now I know that I need to do
mkpasswd -l -d > /etc/passwd and mkgroup -l -d > /etc/group, etc.
However when I start a bash shell id returns:

$ id
uid=400(adefaria) gid=401(Domain Users)
groups=544(Administrators),545(Users),38018(CTXSJCA),28526(dept-6700),10513(#Domain Users),401(Domain Users),37324(Exceed8),75030(IRV-bsehwdsl),66771(IRVA630XChina),66772(IRVA630XChinaBSE)

Yet if I do:

$ mkpasswd -d -u adefaria
ADEFARIA:unused_by_nt/2000/xp:100260:10513:Andrew DeFaria,U-BROADCOM\ADEFARIA,S-1-5-21-1039729616-1467765255-1947940980-90260:/home:/bin/bash

As you can see my UID from the domain controler is 100260 and GID is 10513.
Why is id returning 400 and 401?

I believe cygwin finds the first record in /etc/passwd that matches a given username. So try reordering them. Same with /etc/group and "Domain Users". I don't recall whether the usernames are case-sensitive -- so the all-caps on your domain username may be a red herring.

HTH,
	Igor
--
				http://cs.nyu.edu/~pechtcha/
     |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
    |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
   '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
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]