This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
RE: Building /etc/passwd from setup.exe
- From: "John Morrison" <john dot r dot morrison at ntlworld dot com>
- To: <cygwin-apps at cygwin dot com>
- Date: Sun, 8 Dec 2002 17:06:51 -0000
- Subject: RE: Building /etc/passwd from setup.exe
> 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.