Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 19:06:06 -0300
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
To:        FreeBSD Security <freebsd-security@freebsd.org>
Subject:   Re: su -c user command not working
Message-ID:  <20020323190605.B442@iib.unsam.edu.ar>
In-Reply-To: <0GTE00CJ09PDMH@local.athabascau.ca>; from dmitry@athabascau.ca on Fri, Mar 22, 2002 at 02:46:03PM -0700
References:  <20020322165816.A561@iib.unsam.edu.ar> <0GTE005BP5MQBK@local.athabascau.ca> <20020322180540.C561@iib.unsam.edu.ar> <0GTE00CJ09PDMH@local.athabascau.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
+----[ 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020323190605.B442>