This is the mail archive of the cygwin-developers@sources.redhat.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]

Re: seteuid ?


--- Corinna Vinschen <vinschen@cygnus.com> 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:
> 
>
root::0:0:U-FOO\earnie,S-1-5-21-12345678-56789012-34567890-1002:/home/root:/bin/bash
> 
> 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:  

earnie::1002:544:U-FOO\earnie,S-1-5-21-12345678-56789012-34567890-1002:/home/root:/bin/bash
root::0:0:U-FOO\earnie,S-1-5-21-12345678-56789012-34567890-1002:/home/root:/bin/bash

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.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

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