FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-05-2010, 02:06 AM
Umarzuki Mochlis
 
Default giving normal user a super user privilege

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" group.#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_uidauth * * * * * *include * * * * system-authaccount * * * * sufficient * * *pam_succeed_if.so uid = 0 use_uid quiet
account * * * * include * * * * system-authpassword * * * *include * * * * system-authsession * * * * include * * * * system-authsession * * * * optional * * * *pam_xauth.so

when i su to user umarzuki and view its id output$ iduid=500(umarzuki) gid=500(umarzuki) groups=10(wheel),500(umarzuki)
and i tried run$ yum update
Loaded plugins: fastestmirrorYou need to be root to perform this command.
but i managed to change the interface's IP with this command$ /sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up

Is there a step that i missed?*

--
Regards,

Umarzuki Mochlis
http://debmal.my

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-05-2010, 02:18 AM
Umarzuki Mochlis
 
Default giving normal user a super user privilege

my mistake, i had done sticky bit on /sbin/ifconfig yesterday*# chmod u+s /sbin/ifconfig

2010/2/5 Umarzuki Mochlis <umarzuki@gmail.com>

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" group.#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_uidauth * * * * * *include * * * * system-authaccount * * * * sufficient * * *pam_succeed_if.so uid = 0 use_uid quiet

account * * * * include * * * * system-authpassword * * * *include * * * * system-authsession * * * * include * * * * system-authsession * * * * optional * * * *pam_xauth.so


when i su to user umarzuki and view its id output$ iduid=500(umarzuki) gid=500(umarzuki) groups=10(wheel),500(umarzuki)
and i tried run$ yum update

Loaded plugins: fastestmirrorYou need to be root to perform this command.
but i managed to change the interface's IP with this command$ /sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up


Is there a step that i missed?*

--
Regards,

Umarzuki Mochlis
http://debmal.my



--
Regards,

Umarzuki Mochlis
http://debmal.my


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 12:43 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org