delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/31/06:16:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39AE3031.344BE32A@cygnus.com>
Date: Thu, 31 Aug 2000 12:15:13 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sources DOT redhat DOT com>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin AT sources DOT redhat DOT com
Subject: Re: newbie: using su
References: <200008310950 DOT EAA20904 AT smtp DOT sunflower DOT com>

Doug Wyatt wrote:
> 
> Hi,
> 
> I'm sorry, but I don't know the answers to your questions about juggling
> the /etc/passwd file.  My superficial answer would be that when you
> logon to the PC, that's who you are, unless you use the ntreskit su.exe.
> The /etc/passwd file only provides a unix-like image of the PC's
> authentication info for unix tools to use.

Correct.

> I believe the string in the GECOS field is an NT SID.

Ditto.

I suggest reading the online documentation

	http://sources.redhat.com/cygwin/docs.html

especially the ntsec chapter.

> Regards,
> Doug Wyatt
> 
> > Okay, so su doesn't work, can I just use brute force? If I ALWAYS want
> > to log on as another user (the "owner" of a particular application) and never
> > as me (my W2K login for mail etc..)
> >
> > What if I remove my entry from /etc/passwd, make a copy of the desired
> > users entry in /etc/passwd then change the name in that entry to my user
> > name (making sure this entry comes after the real users entry).  I then log
> > in as me but am now the first user.  Any side-effects that I should be aware
> > of?

The only side effect is that it won't work.

> > example:
> > desireduser::1002:513:The user I want to be,S-1-5-21-1538995194-1560047842-1096501715-1002::/bin/sh
> > me::1002:513:trendadm,S-1-5-21-1538995194-1560047842-1096501715-1002::/bin/sh
> >
> >
> > Michael
> >
> > P.S. What is that entry in the gecos field?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin AT sources DOT redhat DOT com
Red Hat, Inc.
mailto:vinschen AT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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