[CentOS] giving normal user a super user privilege

Umarzuki Mochlis umarzuki at gmail.com
Fri Feb 5 03:06:07 UTC 2010

I had added user umarzuki to wheel group
# usermod -G wheel umarzuki

*Yes, I can use/setup sudo but I do this just for learning purpose

My /etc/pam.d/su as below

auth            sufficient      pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel"
#auth           sufficient      pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
auth            required        pam_wheel.so use_uid
auth            include         system-auth
account         sufficient      pam_succeed_if.so uid = 0 use_uid quiet
account         include         system-auth
password        include         system-auth
session         include         system-auth
session         optional        pam_xauth.so

when i su to user umarzuki and view its id output
$ id
uid=500(umarzuki) gid=500(umarzuki) groups=10(wheel),500(umarzuki)

and i tried run
$ yum update
Loaded plugins: fastestmirror
You need to be root to perform this command.

but i managed to change the interface's IP with this command
$ /sbin/ifconfig eth0 netmask up

Is there a step that i missed?


Umarzuki Mochlis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100205/9874e873/attachment.html>

More information about the CentOS mailing list