Votes: 0Posted On: Sep 23, 2015 02:49:24
In all Linux systems giving regular users the privilege to run root level commands is part of setting up a secure system. It is never recommended to allow normal users the ability to operate root level commands due to potential compromises to the user level that can lead to a system wide comprise. Visudo can be used to allow normal users the permissions to run root level commands while still being login as the user account.
Running the command visudo will open the visudo conf editor which allows the root user to add users to the sudoers list. Search for the follow lines and edit-add the user admin to the visudo list.
Next comes the main part: which users can run what software on
which machines (the sudoers file can be shared between multiple
The COMMANDS section may have other options added to it.
Allow root to run any commands anywhere
root ALL=(ALL) ALL
admin ALL=(ALL) ALL
Ubuntu and Debian format might change but normally the visudo editor gives examples how to add users to the vsudoers list.