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

sudo sh | 16 comments | Create New Account
Click here to return to the 'sudo sh' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
sudo sh
Authored by: davidmorr on Jan 26, '04 06:31:34PM

Yes, it is perfectly acceptable to run a shell as the target of the sudo command. You can use other shells than sh also, so

sudo bash
sudo tcsh

are all acceptable.

This is probably exactly the same as sudo -s, except that you can specify a different shell to your default.

The ony drawback, as someone mentions later, is that there is no logging of what you do in the shell, as there is for individual sudo commands.


[ Reply to This | # ]