To view parent comment, click here.
To read all comments associated with this story, please click here.
It's better to use "sudo -i" for that.
When you use "sudo su" you are creating a new bash job as root, launching su inside it, and then launching a new bash as root. You have three (3) processes and you only have a shell where you must launch the program you whant.
When you use "sudo -i" you are creating a new bash job as root that will act like a logging one (reading all root preferences including .bashrc, .bash_profile and so on). Only one child process and you are set to work.
Added benefit: you doesn't need to have "su" installed, so one less program to upgrade an take care of bugs, sudo allows a finer grained permission, allowing to grant access only to some programs to user A while full access to user B and NO access to user C without telling them the root password because each one uses his/her own password while you need root's password to use su (so you have full access to break things)






Member since:
2006-04-07
The root account is enabled, you just lack the password. This really is a difference. Anyway, if you prefer to act as root you just need to type "sudo su" and there you are. I admit, it takes 3 more characters than "su -"