SUDO add to user

Frist you need to change to permission at /etc/sudoers 640


[root@ ~]# chmod u+w /etc/sudoers

Then open to /etc/sudoers

[root@ ~]# vi /etc/sudoers

## Allows people in group wheel to run all commands, below
<strong>jshan       ALL=(ALL)       ALL

</strong>## If you want to Allows group use to press %, like this.<strong>
%group      ALL=(ALL)       ALL


Finally change to file permission at /etc/sudoers 640

[root@~]# chmod u-w /etc/sudoers
Facebook Comments

Leave A Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.