This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: [RFC] Globally creating a user and a group "root"
On Tue, 11 Nov 2003, Christopher Faylor wrote:
> On Tue, Nov 11, 2003 at 01:46:48PM +0100, Corinna Vinschen wrote:
> >My idea is basically the following:
> >
> >- On all NT systems, create a user account called "root" which is
> > member of the administrators group.
> >[snip]
> >Comments? If we agree to do as above (or similar), I would gladly
> >appreciate, if I wouldn't have to do it alone.
>
> I have always thought that it would be a good idea to implement a 'root'
> user since so many UNIX programs rely on its availability. Anything you
> can do to make this so will be worthwhile, even if it isn't a perfect
> solution. IMO.
I agree. In fact, if the user SYSTEM exists and already has appropriate
privileges, we could simply map "root" (UID 0) to SYSTEM's SID (I've been
doing this on my machine for a while now). One problem I've encountered
with this is that a bunch of programs check for UID=18 on Cygwin (e.g.,
apache), and behave differently if that's not the case (so I had a "root"
user that couldn't switch user id's, since apache didn't even try). This
would also depend on the order in which entries appear in /etc/passwd.
It would be a good idea to compile a list of such packages, and give a
heads-up to all maintainers before the switch happens. The packages that
definitely have this problem are openssh, inetutils, and apache, and I'm
most likely missing some.
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!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton