Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Fix the sudo shell prompt' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Fix the sudo shell prompt
Authored by: club60.org on Mar 19, '08 08:11:48AM

Or you could issue "sudo su -" command.



[ Reply to This | # ]
10.5: Fix the sudo shell prompt
Authored by: allanmarcus on Mar 19, '08 09:14:44AM

sudo su - would only work if you have root enabled, which is not recommended. If you have root enabled you don't need the sudo command, just su - works.



[ Reply to This | # ]
10.5: Fix the sudo shell prompt
Authored by: Anonymous on Mar 19, '08 02:44:44PM

Eh? sudo su - works even if you don't enable the root account...

[dbr@schism:~]$ sudo su -
Password:[my users password]
[root@schism:~]$



[ Reply to This | # ]
10.5: Fix the sudo shell prompt
Authored by: leamanc on Mar 20, '08 05:46:24AM
You all beat me to it. sudo su - is the established way to do this. It works without root being enabled. All sudo -s does is open another shell, whereas sudo su - executes a full login, including the setting of any envirionment variables.

[ Reply to This | # ]