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

Detection ADBlockPlease, Disable or add to white list on our site.