seteuid ?

Earnie Boyd
Mon Oct 2 04:34:00 GMT 2000

--- Corinna Vinschen <> wrote:
> But you don't need to `su' to get that. You can simply _be_ root in
> terms of POSIX. For example your NT domain\username is "FOO\earnie",
> you are member of Administrators (SID: S-1-5-32-544) and your SID is
> S-1-5-21-12345678-56789012-34567890-1002.
> If you are using "ntsec" you can set your /etc/passwd entry that way:
> and in /etc/group:
> root:S-1-5-32-544:0:
> and voila, your Cygwin uid is 0 and gid is 0 as well and all POSIX tools
> recognize you as `root', member of group `root'.

Yes, I'm aware of that.  My /etc/passwd would read:  


I want account earnie to be the default when logging on.  Cygwin is running on
an NT4sp4 workstation with no one else using it.  I have administrative rights
to the local machine as Domain User (I don't administer the domain).  I need to
be able to su root in order to have some daemon programs I'm trying to port
think that I'm UID=0.

Now, I could modify the daemon but IMO I shouldn't have to.  So, what in your
opinion is the best way to implement this scenario in Cygwin?  I understand
that the ability to maintain the current function is probably wanted so
something like ntsec=workstation is going to be necessary.


Earnie Boyd

---         < >         ---
--- Cygwin: POSIX on Windows < > ---
---   Minimalist GNU for Windows < >   ---

Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!

More information about the Cygwin-developers mailing list