wheel group not working for sudo

General support questions
Post Reply
vamfoom
Posts: 27
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: 27
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
Forum Moderator
Posts: 23841
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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply