Re: su -c user command not working

From: Fernan Aguero (fernan@iib.unsam.edu.ar)
Date: 03/23/02


Date: Sat, 23 Mar 2002 19:06:06 -0300
From: Fernan Aguero <fernan@iib.unsam.edu.ar>
To: FreeBSD Security <freebsd-security@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