Its not a good idea to grant ALL permission to users like this:
So to resolve this we have to properly configure sudo user and for that you can use below command:
Code:
root ALL=(ALL:ALL) ALL
admin ALL=(ALL:ALL) ALL
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