usermod -a -G wheel corpdev\\atwlam
Though it is possible to add domain user to wheel, the user is still unable to sudo.
CORPDEV\atwlam@sles12:~> sudo su -
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
root's password:
So the second option would be to add the domain user (or group, e.g. %corpdev\\linux_admins, note the double backslashes) to sudoers:
# visudo
%wheel ALL=(ALL) NOPASSWD: ALL
%corpdev\\linux_admins ALL=(ALL) NOPASSWD: ALL
And there you go, the domain user can now use sudo:
CORPDEV\atwlam@sles12:~> sudo su -
sles12:~ #
No comments:
Post a Comment