Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unusual sudo problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Fri Jan 03, 2003 7:36 pm    Post subject: unusual sudo problem Reply with quote

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
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sat Jan 04, 2003 3:16 am    Post subject: Re: unusual sudo problem Reply with quote

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
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Sat Jan 04, 2003 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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