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


Click here to return to the 'sudo su and sudo sh...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
sudo su and sudo sh...
Authored by: rhowell on Jan 26, '04 05:28:10PM
don't seem to incorporate the evironment settings from my normal shell. I like my "ls" to always appear the same, etc., whether I have normal priviledges or I'm sudo-ing. I also thought the "su" command would log you in as root, and the point of this hint was to obtain a shell with root-like priviledges without enabling the root account.

The sudo -s command came right from the man pages.

[ Reply to This | # ]

sudo su and sudo sh...
Authored by: dhrakar on Jan 26, '04 08:11:46PM
The Apple definition of 'enabled' is, I think, a bit misleading. The root account is always enabled. It just does not have a password by default. That is, you can do stuff as root but you just can't log in as root. Your hint is using sudo to create a root shell without having to give a root password.

Out of curiosity, why do you need a root shell? As the admin user, there is very little that you can't do on the system in your own little shell and you can use sudo to do the other tasks... Not to say that what you are doing is wrong, but I like to keep the time I spend with super-user powers to a minimum.

[ Reply to This | # ]