<div>I had added user umarzuki to wheel group</div><div># usermod -G wheel umarzuki</div><div><br></div><div>*Yes, I can use/setup sudo but I do this just for learning purpose</div><div><br></div><div>My /etc/pam.d/su as below</div>
<div><br></div><div>auth            sufficient      pam_rootok.so</div><div># Uncomment the following line to implicitly trust users in the "wheel" group.</div><div>#auth           sufficient      pam_wheel.so trust use_uid</div>
<div># Uncomment the following line to require a user to be in the "wheel" group.</div><div>auth            required        pam_wheel.so use_uid</div><div>auth            include         system-auth</div><div>account         sufficient      pam_succeed_if.so uid = 0 use_uid quiet</div>
<div>account         include         system-auth</div><div>password        include         system-auth</div><div>session         include         system-auth</div><div>session         optional        pam_xauth.so</div><div>
<br></div><div>when i su to user umarzuki and view its id output</div><div>$ id</div><div>uid=500(umarzuki) gid=500(umarzuki) groups=10(wheel),500(umarzuki)</div><div><br></div><div>and i tried run</div><div><div>$ yum update</div>
<div>Loaded plugins: fastestmirror</div><div>You need to be root to perform this command.</div><div><br></div><div>but i managed to change the interface's IP with this command</div><div>$ /sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up</div>
<div><br></div><div>Is there a step that i missed? </div><div><br></div></div><br>-- <br>Regards,<br><br>Umarzuki Mochlis<br>http://debmal.my<br>