Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fixing sudoer file
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
Elsipkitch9809
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 186

PostPosted: Sun Oct 27, 2002 7:26 pm    Post subject: Fixing sudoer file Reply with quote

Hiya,

I'm trying to learn how to set a certain user to be able to access /sbin/shutdown and /sbin/reboot so I can make some gnome icons that let you reboot or shutdown.

I looked up posts in the search engine on this, got a few interesting ones, but none that so far have fully helped me (except for setting the sudo bit +s). I've checked the man pages for sudo and sudoer.


Last edited by Elsipkitch9809 on Tue Mar 01, 2016 6:15 am; edited 1 time in total
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sun Oct 27, 2002 11:42 pm    Post subject: Re: Fixing sudoer file Reply with quote

alaterale wrote:
That doesn't give visudo any errors, but I still get program not found if I try typing reboot as jstrange. Any help or suggestions?

That's because /sbin isn't in your $PATH. Try either placing that directory in your path or typing /sbin/shutdown instead of just shutdown. (I suppose you could also symlink /usr/bin/shutdown to /sbin/shutdown)

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Elsipkitch9809
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 186

PostPosted: Sun Oct 27, 2002 11:55 pm    Post subject: Reply with quote

Hi

I tried what you suggested and now I get "must be superuser". I haven't changed /etc/sudoer (or whatever visudo edits) at all.... I don't get it :P I must be doing something wrong here.
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon Oct 28, 2002 12:17 am    Post subject: Reply with quote

Ahh....are you typing:

Code:
/sbin/shutdown


or

Code:
sudo /sbin/shutdown


You should be doing the latter.

--kurt
_________________
The problem with political jokes is that they get elected
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