Steps to configure sudo command in Linux vps

kumkumsharma

Administrator
Staff member
Its not a good idea to grant ALL permission to users like this:

Code:
root ALL=(ALL:ALL) ALL
admin ALL=(ALL:ALL) ALL
So to resolve this we have to properly configure sudo user and for that you can use below command:

Code:
User_name Machine_name=(Effective_user) command
You can check the below description:
User_name: Username.
Machine_name : Hostname
(Effective_user) : Users have permission to execute command.
command : Commands
 
Top