List of advantages of sudo over su
- sudo makes sure that root privileges are there for a specific command (or for a specific time period) and not for the complete session as that may result in accidental misuse of root privileges.
- You can use sudo to even grant limited privileges to a user. This is helpful when you do not want a user to have control of all the root powers while doing a sudo.
- There is a log file (auth.log) that is maintained for each sudoer. This file provides information on the commands that were executed using sudo and their time of execution. This helps administrator to keep track of even trusted users (sudoers).
- The best advantage is that sudo requires user’s own login password rather than root password. This helps in keeping root password private and also there is no need to change it even when a user (sudoer) leaves.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.