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...
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:
Post a Comment