[sudo-users] differences between su -, sudo, and logging in as root.

Michael Potter pottmi at gmail.com
Mon Feb 5 22:40:04 EST 2007


Group,

I would like to enumerate the differences betwee these four options
for executing commands as root:

1) su root -c "some/commad"
2) ssh root at localhost "some/command"
3) sudo some/command
4) and just logining in as root.


I am going to do some experiments, but I would like to get a little
feedback from the group first.

Things that come to mind that might be different are:
a) the permissions on the tty
b) the environment
c) real/effective user and group ids.

Can you think of anything else I should check while running my tests?

Are there other ways to run a command as root that I should include in my tests?

-- 
Michael Potter



More information about the sudo-users mailing list