delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/13/15:50:23

From: garbanzo AT hooked DOT net (Alex)
Subject: Re: Who is root? (was Re: raw floppy access)
13 Nov 1997 15:50:23 -0800 :
Message-ID: <Pine.BSF.3.96.971113145826.275A-100000.cygnus.gnu-win32@zippy.dyn.ml.org>
References: <199711130133 DOT MAA26449 AT mali DOT cd DOT comdyn DOT com DOT au>
Mime-Version: 1.0
To: raf <raf AT comdyn DOT com DOT au>
Cc: gnu-win32 AT cygnus DOT com


On Thu, 13 Nov 1997, raf wrote:

> If you are running NT, you might need to create
> an NT user with uid 0 (not just /etc/passwd).
> 
> Anyone know if this possible? I doubt it.

Check MS's MSDN stuff, and if you know C, even better :)  It might take a
little work, but I'm sure it's possible (I don't have NT, so I don't care
that much).
 
> Alternatively, get[e]uid() could be made to
> return 0 when the user is in the Administrators group.
> Sounds very kludgy.
> Would this be a good idea?

If it was going to be modified to do something like that, it should return
0 for getegid if you're in the Administrators group, and 0 for getgid if
you're only in that group.  For getuid it should then probably return 0 if
you  are the administrator, and 0 for geteuid if you're su'n.
 
> Isn't the concept of a 'root' user too important
> to ignore when porting unix software?

Theoretically it _is_, but what about on Win95?  So far you're stuck with
{u|g}id 500.

- alex

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019