www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/10/02/07:34:37

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <earnie_boyd AT yahoo DOT com>
Subject: Re: seteuid ?
To: cygdev <cygwin-developers AT sources DOT redhat DOT com>
MIME-Version: 1.0

--- Corinna Vinschen <vinschen AT cygnus DOT 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 AT yahoo DOT 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/

- Raw text -


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