1. Don't edit /etc/sudoers
when it has this line:
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
use this to add the user to sudo:
sudo usermod -a -G sudo peter
-a means additional group for this user.
-G is the group. Uppercase may be excessive, should check if lower will do.
No comments:
Post a Comment