delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/12/05:43:03

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
Date: Mon, 12 Feb 2001 11:42:22 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: effective user id
Message-ID: <20010212114222.J2107@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <u7l2zxee6 DOT fsf AT multiline DOT com DOT au> <20010212104724 DOT H2107 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010212104724.H2107@cygbert.vinschen.de>; from cygwin@cygwin.com on Mon, Feb 12, 2001 at 10:47:24AM +0100

On Mon, Feb 12, 2001 at 10:47:24AM +0100, Corinna Vinschen wrote:
> On Sat, Feb 10, 2001 at 02:04:17PM +0800, Guy Worthington wrote:
> > If I'm logged in as an administrators member and then in a console type:
> > 
> > su guest
> > 
> > I get the error
> > 
> > su: Cannot set group id: Invalid argument
> > 
> > I'm trying to switch to another effective user ID with no password in
> > the same way as has been exploited for anonymous ftp
> > (as described in the article: inetutils-1.3.2.README).
> > 
> > How do I switch my effective user ID to another user without a password.
> 
> http://cygwin.com/docs.html

Sorry, that's a bit short.

Correct answer: You can switch the euid without a password if and only if
the user you switch to has no password.

More info: http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID

Other prerequisites are correct passwd and group files. Your above
error is probably related to a incorrect /etc/group file. The gid in
the users passwd entry is not mentioned in /etc/group or sth similar.

Corinna

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

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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