Le Vendredi 31 à 20:27, Fred Condo a écrit :
> Use this syntax (both equivalent):
> su - root
> su -l root
> You do have to specify the user with -l. Perhaps the man page could
> clarify that.

I read the first line that says "The su utility requests appropriate
user credentials via PAM and switches to that user ID (the default user
is the superuser)" as "'su -' and 'su - root' are equivalent".

su -l root as the expected behaviour (resetting $LOGNAME to $USER),
thanks a lot.

> On Oct 31, 2008, at 11:33 AM, Frédéric Perrin wrote:
>> As a side question, is it considered bad practice to set root's shell
>> and locales to something else than the default ?

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to