[sudo-users] differences between su -, sudo, and logging in as root.
jandot at googlemail.com
Tue Feb 6 05:01:09 EST 2007
Michael Potter wrote:
> 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?
the most important differents is that with sudo every move is logged.
And passwords are cached.
More information about the sudo-users