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: Earnie Boyd <earnie_boyd at yahoo dot com>
- To: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- Cc: cygwin-apps at cygwin dot com
- Date: Fri, 06 Dec 2002 17:02:59 -0500
- Subject: Re: Building /etc/passwd from setup.exe
- References: <3DF11904.584828EA@ieee.org>
Pierre A. Humblet wrote:
# if USERDOMAIN isn't empty and
# USERDOMAIN isn't the hostname then we are in a domain
if [ ! -z "$USERDOMAIN" ] && [ "$USERDOMAIN" != "`hostname`" ] ; then
# domain user
type="-d"
fi
# Should we append rather than replace?
if [ ! -e /etc/passwd ] ; then
/bin/mkpasswd ${type} > /etc/passwd
fi
if [ ! -e /etc/group ] ; then
/bin/mkgroup ${type} > /etc/group
fi
**********
That file has no effect if it runs after passwd-grp.bat, because
then the passwd file already exists. I have observed that order,
I don't know if it's deterministic.
So that's why domain users are not included, and why they are included
if they delete /etc/passwd and rerun /etc/postinstall/passwd-grp.sh.done
after setup, as has been suggested on the list.
This ``$type'' should only poll for the current user in the domain. I
and my company would be very upset if I polled for 10's of thousands of
users.
Earnie.