Behaviour of su(1)
Frédéric Perrin
frederic.perrin at resel.fr
Mon Nov 3 14:44:39 PST 2008
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 ?
--
Fred
More information about the freebsd-questions
mailing list