Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Mon, 12 Feb 2001 11:42:22 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: effective user id
Message-ID: <20010212114222.J2107@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <u7l2zxee6.fsf@multiline.com.au> <20010212104724.H2107@cygbert.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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@cygwin.com
Red Hat, Inc.

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

