Page 1 of 1

wheel group not working for sudo

Posted: 2018/11/09 23:17:36
by vamfoom
This works fine in CentOS 7 but in CentOS 6 adding a user to the "wheel" group doesn't allow that user to ecalate to root.

Code: Select all

[centos@salt6master ~]$ grep wheel /etc/group
wheel:x:10:centos

[centos@salt6master ~]$ sudo ls
[sudo] password for centos: 
centos is not in the sudoers file.  This incident will be reported.
I'm using the centos 6 qcow2 image provided by the centos team.

Re: wheel group not working for sudo

Posted: 2018/11/10 01:03:51
by vamfoom
It seems this is commented out by default in /etc/sudoers file.

Re: wheel group not working for sudo

Posted: 2018/11/10 01:16:15
by TrevorH
Yes, that's expected.