View previous topic :: View next topic |
Author |
Message |
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Jan 03, 2003 7:36 pm Post subject: unusual sudo problem |
|
|
Hi!
I wanted to enable shutdown as user, but ran into a more general problem. I can su, but not sudo as wheel user. I checked /etc/pam.d/sudo Quote: | auth required pam_pwdb.so shadow nullok | , changed in the sudoers file Quote: | %wheel ALL = NOPASSWD: /sbin/shutdown, /sbin/halt, /sbin/reboot |
to
Quote: | wheeluser ALL = NOPASSWD: /sbin/shutdown, /sbin/halt, /sbin/reboot | ,
but nothing helped. If I'll try to sudo, I'm asked to enter the password, but the password isn't accepted.
In var/log/auth.log I just found lines like this: Quote: | Jan 3 03:43:47 myHost PAM_pwdb[31390]: authentication failure; wheeluser(uid=0) -> wheeluser for sudo service
|
I have no idea, why the authentication fails. Could anyone help or give me a hint?
Carlo |
|
Back to top |
|
|
vers_iq Apprentice
Joined: 18 May 2002 Posts: 264
|
Posted: Sat Jan 04, 2003 3:16 am Post subject: Re: unusual sudo problem |
|
|
Quote: | wheeluser ALL = NOPASSWD: /sbin/shutdown, /sbin/halt, /sbin/reboot |
indicates that a user wheeluser will be able to run /sbin/shutdown, /sbin/halt, /sbin/reboot using sudo without the need to enter password,
But if u want to make a user in wheel group to do the same, you should keep the line as Quote: | %wheel ALL = NOPASSWD: /sbin/shutdown, /sbin/halt, /sbin/reboot |
_________________ "You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the Swiss hold the America's cup, France accusing the US of arrogance and Germany doesn't want to go to war." |
|
Back to top |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Sat Jan 04, 2003 7:23 pm Post subject: |
|
|
Thanks for reply vers_iq. I changed %wheel to wheeluser just for testing.
Don't know why, don't know how, but it works now, though I changed nothing.
Carlo |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|