On CentOS release 5.11 (Final)
I created a user and added them to the wheel group with usermod
but when I look in the sudoers file at /etc/sudoers
the relevant line is commented out. Looking at groups:
[root@arrakis ~]#
[root@arrakis ~]# grep wheel /etc/group
wheel:x:10:root,hawat
[root@arrakis ~]#
[root@arrakis ~]# su hawat
[hawat@arrakis root]$
[hawat@arrakis root]$ cd
[hawat@arrakis ~]$
[hawat@arrakis ~]$ whoami
hawat
[hawat@arrakis ~]$
[hawat@arrakis ~]$ sudo echo "hello sudo"
[sudo] password for hawat:
hawat is not in the sudoers file. This incident will be reported.
[hawat@arrakis ~]$
and
[root@arrakis ~]#
[root@arrakis ~]# groups wheel ; getent passwd hawat
id: wheel: No such user
hawat:x:505:505::/home/hawat:/bin/bash
[root@arrakis ~]#
Taking a closer look at sudoers
:
[root@arrakis ~]#
[root@arrakis ~]# grep wheel /etc/sudoers
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# %wheel ALL=(ALL) NOPASSWD: ALL
[root@arrakis ~]#
I hesitate to uncomment those lines so that the wheel group can run all commands with sudo
. This is an Elastix 2.5
system on CentOS
; perhaps there's a reason not to have wheel
in the sudo list?
Should I just go ahead an manually edit sudoers
with visudo
?