[Linux] Ubuntu 7.10 and su or sudo

Danny Rathjens linux@flux.org
Mon, 14 Jan 2008 13:21:16 -0500


Steven Benmosh wrote:
> sudo su

sudo already runs the command specified as root, so running a command to switch user to root is quite redundant.
sudo bash
Is a more straightforward way to violate sudo security.
Personally I think that once you've reached the stage of needing your own root shell that you are ready to upgrade from Ubuntu to Debian. ;)

This is kind of like folks who use
cat file | grep pattern
instead of
grep pattern file

Sure, running an extra process isn't all that noticeable on modern machines, but I like to do everything as efficiently as possible. 8^)