wheel group not working for sudo

General support questions
Post Reply
vamfoom
Posts: 39
Joined: 2014/05/24 01:28:37

wheel group not working for sudo

Post by vamfoom » 2018/11/09 23:17:36

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.

vamfoom
Posts: 39
Joined: 2014/05/24 01:28:37

Re: wheel group not working for sudo

Post by vamfoom » 2018/11/10 01:03:51

It seems this is commented out by default in /etc/sudoers file.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: wheel group not working for sudo

Post by TrevorH » 2018/11/10 01:16:15

Yes, that's expected.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply