Re: Behaviour of su(1)

2008-11-03 Thread Frédéric Perrin
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

Re: Behaviour of su(1)

2008-11-03 Thread Mel
On Friday 31 October 2008 19:33:44 Frédéric Perrin wrote: As a side question, is it considered bad practice to set root's shell and locales to something else then the default ? By some (most?) yes. If you decide to change the default shell, to one that's not in the base system (i.e., a

Behaviour of su(1)

2008-10-31 Thread Frédéric Perrin
Hello, When I « su - » to root (after being logged in as my normal user), the LOGNAME env variable is still set to my previous user, as in : , | [EMAIL PROTECTED]:~% /usr/bin/su -l | Password: | [EMAIL PROTECTED]:~# echo $USER - $LOGNAME | root - fred ` As far as I can tell, this

Re: Behaviour of su(1)

2008-10-31 Thread Chuck Swiger
Hi-- On Oct 31, 2008, at 11:33 AM, Frédéric Perrin wrote: When I « su - » to root (after being logged in as my normal user), the LOGNAME env variable is still set to my previous user, as in : , | [EMAIL PROTECTED]:~% /usr/bin/su -l | Password: | [EMAIL PROTECTED]:~# echo $USER - $LOGNAME |

Re: Behaviour of su(1)

2008-10-31 Thread Fred Condo
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. On Oct 31, 2008, at 11:33 AM, Frédéric Perrin wrote: Hello, When I « su - » to root (after being logged in as my normal user), the LOGNAME env variable