From owner-freebsd-security Sat Mar 23 14: 6:24 2002 Delivered-To: freebsd-security@freebsd.org Received: from www.unsam.edu.ar (ns2.unsam.edu.ar [170.210.48.2]) by hub.freebsd.org (Postfix) with ESMTP id 891BF37B417 for ; Sat, 23 Mar 2002 14:06:19 -0800 (PST) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by www.unsam.edu.ar (8.9.3/8.9.3) with ESMTP id TAA97597 for ; Sat, 23 Mar 2002 19:06:07 -0300 (ART) (envelope-from fernan@pi.iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.11.3/8.11.3) id g2NM66T00613 for freebsd-security@freebsd.org; Sat, 23 Mar 2002 19:06:06 -0300 (ART) (envelope-from fernan) Date: Sat, 23 Mar 2002 19:06:06 -0300 From: Fernan Aguero To: FreeBSD Security Subject: Re: su -c user command not working Message-ID: <20020323190605.B442@iib.unsam.edu.ar> References: <20020322165816.A561@iib.unsam.edu.ar> <0GTE005BP5MQBK@local.athabascau.ca> <20020322180540.C561@iib.unsam.edu.ar> <0GTE00CJ09PDMH@local.athabascau.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0GTE00CJ09PDMH@local.athabascau.ca>; from dmitry@athabascau.ca on Fri, Mar 22, 2002 at 02:46:03PM -0700 X-PGP-Key: http://genoma.unsam.edu.ar/~fernan/pubkey.asc 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 +----[ Dmitry S. Makovey (dmitry@athabascau.ca) dijo sobre "Re: su -c user command not working": | | On Friday 22 March 2002 14:05, you wrote: | > OK, OK, so now it's clear. But apparently su -m does not work either. | > It still intrigues me why the examples in the su(1) manpages | > explicitly mention cases where no shell is available and therefore, | > the example will not work! | | ~ # su -m www | ~ > whoami | www | ~ > grep www /etc/passwd | www:*:80:80:World Wide Web Owner:/nonexistent:/sbin/nologin | ~ > | | maybe you are doing something else? :) | Good luck | +----] Yeah, maybe I was typing something wrong. su amanda -c "amcheck normal" didn't work, but su -m amanda -c "amcheck normal" did it. I was just putting things in the wrong order, like: su amanda -m ... or su -c amanda ... Now it's OK. Thanks to all who replied. Fernan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message