Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the '10.5: Fix the sudo shell prompt' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Fix the sudo shell prompt
Authored by: club60.org on Wed, Mar 19 2008 at 8:11AM PDT
Or you could issue "sudo su -" command.

[ Reply to This | # ]
10.5: Fix the sudo shell prompt
Authored by: allanmarcus on Wed, Mar 19 2008 at 9:14AM PDT
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: mr_dbr on Wed, Mar 19 2008 at 2:44PM PDT
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 Thu, Mar 20 2008 at 5:46AM PDT
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 | # ]