Related Post

4 Comments Received

UltraNurd
March 16th, 2011 @12:19 pm  

I don’t like the security risk of having the root account enabled, so I set up this simple alias to give me a root shell via sudo:

alias root=’sudo su -’

That’s in my ~/.aliases file, which is sourced by my .bashrc.

You still need to be an Administrator for sudo access, of course, but this means the root account still doesn’t have a password, you just use your account password to get a root shell.

Todd Van Hoosear
April 22nd, 2011 @3:31 pm  

Hmm… Having comment problems. @UltraNurd ( http://www.ultranurd.net ) commented:

I don't like the security risk of having the root account enabled, so I set up this simple alias to give me a root shell via sudo:

alias root='sudo su -'

That's in my ~/.aliases file, which is sourced by my .bashrc.

You still need to be an Administrator for sudo access, of course, but this means the root account still doesn't have a password, you just use your account password to get a root shell.

shulypoo
January 24th, 2012 @8:10 pm  

sudo su is a fun whay to go root without having to remember root password

Pingback & Trackback