[Pkg-shadow-devel] (forw) Re: Announcing changes in su
Nicolas François
nicolas.francois at centraliens.net
Tue Apr 18 13:10:55 UTC 2006
Hello,
> ----- Forwarded message from grfgguvf at gmail.com -----
>
> Date: Thu, 13 Apr 2006 14:30:48 +0200
> From: grfgguvf at gmail.com
> To: bubulle at debian.org
> Subject: Re: Announcing changes in su
>
> In-Reply-To: <20060306061854.GG9224 at djedefre.onera>
>
>
> > Packages passing a command in argument to su must use su's -c option
>
> You mean sh's -c option.
shadow's su has an -c option. It's argument is then passed to sh's -c
option.
So "su -c ls root" and "su root -- -c ls" are equivalent.
> > su [options] [-] [username [args]]
> >
> > [args] are arguments passed to the shell
> >
> > Specifically:
> > * It is preferable to provide -c in [args] rather than in [options].
>
> Again, you want sh's -c option. Su's -c option would select the login class.
This is for the BSD's su (at least FreeBSD). There is no such notion of
login class in the su from shadow.
Kind Regards,
--
Nekral
More information about the Pkg-shadow-devel
mailing list