Originally posted by reemas:
isnt leaving sudo open like that less secure?
Sure, if your password sucks.
But really there's no need to enable the root user. For most purposes, the following should work well:
If you do need a root shell (or if you're just tired of using sudo before each command) use:
If you need a REAL root shell, run this:
"su" will make you the
super user, and the trailing "-" will make that shell a login shell, effectively starting you up from that user's home directory and reading in environment variables and all that good stuff (note: You can use "su" to become ANY user as long as you know that user's password. "su johndoe", for example).