Building /etc/passwd from setup.exe

John Morrison john.r.morrison@ntlworld.com
Sun Dec 8 09:06:00 GMT 2002


> From: Earnie Boyd
> Pierre A. Humblet wrote:
> > 
> >>Question:
> >>have you a known situation where $USERDOMAIN != hostname and
> >>you weren't logged into a domain?
> > 
> > 
> > No. But I have only checked on one machine. 
> > By the way that test is not needed in the script with -c, because it
> > is then done in a case insensitive manner by mkpasswd itself.  
> > 
> 
> BoydE@DU216771 ~
> $ hostname
> du216771
> 
> BoydE@DU216771 ~
> $ echo $USERDOMAIN
> LCI
> 
> BoydE@DU216771 ~
> $ type hostname
> hostname is hashed (/c/WINNT/system32/hostname)
> 
> BoydE@DU216771 ~
> $ echo $HOSTNAME
> DU216771

OK, I never encountered this, but then I've only three
networks to examine and nobody came forward with any comments
before.

So, what to do...

1) go back to only adding local users
2) keep things the way they are, somehow detecting whether
   the user is running on a domain or not...
3) only add the current user
4) output local *and* domain (or current) if on a domain
5) something else...

Personally, I prefer 2, but given the above, I don't
know how to detect whether I'm a member of a domain or not.

Can folks please offer instruction?

J.



More information about the Cygwin-apps mailing list