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

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다

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