What is difference between Su and Sudo command?

bhawanisingh

Administrator
Staff member
In Linux server you can set user permission and management policy. If users want to execute commands then they can use su and sudo commands.

Su command: Su command wants you to share root password with another user to perform actions.

Sudo command: When user run the sudo command then they will have to use their own password.

You can manage the sudo users list with this command.
Code:
# sudo /usr/sbin/visudo
You can have a look of default sudo command ;
Code:
# root ALL=(ALL) ALL
 
Top