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

jan kalcic jandot at googlemail.com
Tue Feb 6 05:01:09 EST 2007


Michael Potter wrote:
> 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?
>
>   

Hi,

the most important differents is that with sudo every move is logged.
And passwords are cached.

Regards,
Jan



More information about the sudo-users mailing list