Welcome To NetTech Solutions

Warm Welcome to Every Visitor. Here we serve best technical support, all the posts here you find will help you solving and facing the day to day problems.
Every one is welcome to comment on our Posts.

Thursday, March 6, 2014

How to make Linux user a Sudo User

How to make Linux user a Sudo User

Login through root

then run following command to add user for example 'developer' to wheel group.

# /usr/sbin/usermod -aG wheel developer

then edit the /etc/sudoers file

# vi /etc/sudoers

go down and find this…

## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

and remove the hash in front of %wheel so it looks like…

## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL

Once that’s done, your user “developer” is part of the wheel group, who are allowed to use sudo.

Hope this helps...

No comments: