Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Message-ID: <20001002113423.17709.qmail@web113.yahoomail.com> Date: Mon, 2 Oct 2000 04:34:23 -0700 (PDT) From: Earnie Boyd Subject: Re: seteuid ? To: cygdev MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- 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: > > 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 AT yahoo DOT com --- --- --- Cygwin: POSIX on Windows --- --- Minimalist GNU for Windows --- __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/