This is the mail archive of the cygwin-apps@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: [RFC] Globally creating a user and a group "root"


On Wed, Nov 12, 2003 at 12:29:08PM -0000, Morrison, John wrote:
> Corinna Vinschen wrote:
> > Eh, no.  I was thinking about a postinstall script, which checks for
> > Everyone (S-1-0-0) in /etc/passwd and /etc/group and removes these
> > entries silently.  The same script could add the "root" entry to
> > /etc/group. 
> 
> But then what happens if somebody messes up there /etc/[passwd|group]
> and have to create it again?  Does mk[passwd|group] do the changes
> automatically?

mkpasswd and mkgroup don't create an Everyone entry since August 2002.

The remaining problem is the special handling of root.  I guess it's
best to create the /etc/group entry already in mkgroup.  For mkpasswd
it might be best, to add a special handling like this:  If a Windows
user "root" exists, give it the uid 0.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


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