Originally Posted by timgeo
I have scoured the forums, used tricks and tips, but guess I am just too stupid to figure out the SU command.
followed by (root's) password makes your shell become root shell, but your environment remain as it is (i.e. you won't get the $PATH environment variable of root's, but your own).
Does the same thing as above, but now the environment should become that of root's. Sometimes this matters, so know the difference
Become 'otheruser' instead of root.
for a few more options.
Then if you set up sudo
(add people to the sudo group and modify sudoers file to grant privileges as you see fit), you can use
to run 'somecommand' with root privileges; this way you are asked your own password (not root's like with 'su'), and if you are allowed to run 'somecommand' with sudo, it will be run with higher privileges. Note that this way you don't need to type in root password, you can restrict the things run with root privileges (as long as you do it carefully; for example letting people run a shell or su with sudo makes this meaningless and dangerous) and maybe even ease up making some scripts..well, it depends on what you do and how. Just remember that you need to be careful with how you configure sudo..
Hope it explains things a bit.