From owner-freebsd-security Fri Mar 22 12:59:38 2002 Delivered-To: freebsd-security@freebsd.org Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by hub.freebsd.org (Postfix) with ESMTP id 92C3A37B400 for ; Fri, 22 Mar 2002 12:59:34 -0800 (PST) Received: from fwd07.sul.t-online.de by mailout03.sul.t-online.com with smtp id 16oW8L-00063c-03; Fri, 22 Mar 2002 21:59:33 +0100 Received: from pc5.abc (520067998749-0001@[217.233.96.143]) by fmrl07.sul.t-online.com with esmtp id 16oW8I-12F7QGC; Fri, 22 Mar 2002 21:59:30 +0100 Received: (from nicolas@localhost) by pc5.abc (8.11.6/8.11.6) id g2MKxTB01983 for freebsd-security@FreeBSD.ORG; Fri, 22 Mar 2002 21:59:29 +0100 (CET) (envelope-from list@rachinsky.de) Date: Fri, 22 Mar 2002 21:59:29 +0100 From: Nicolas Rachinsky To: FreeBSD Security Subject: Re: su -c user command not working Message-ID: <20020322205929.GC529@pc5.abc> Mail-Followup-To: FreeBSD Security References: <20020322204951.GB529@pc5.abc> <657B20E93E93D4118F9700D0B73CE3EA02FFF4C5@goofy.epylon.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <657B20E93E93D4118F9700D0B73CE3EA02FFF4C5@goofy.epylon.lan> User-Agent: Mutt/1.3.28i X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: C11ABC0E X-PGP-Fingerprint: 19DB 8392 8FE0 814A 7362 EEBD A53B 526A C11A BC0E X-PGP-Key: http://www.rachinsky.de/nicolas/nicolas_rachinsky.asc X-Sender: 520067998749-0001@t-dialin.net Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * "DiCioccio, Jason" [2002-03-22 12:53:04 -0800]: > No, the reason this works is because you're passing the -c to the shell > which su invokes. Most shells take a -c argument. This is why -c is passed > after the username, su -c username would be what you are thinking of > :) uh, my mistake sorry. I mixed "su -c blah user" and "su user -c blah". Nicolas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message