View previous topic :: View next topic |
Author |
Message |
Elsipkitch9809 Apprentice
Joined: 21 Jul 2002 Posts: 186
|
Posted: Sun Oct 27, 2002 7:26 pm Post subject: Fixing sudoer file |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Sun Oct 27, 2002 11:42 pm Post subject: Re: Fixing sudoer file |
|
|
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 |
|
|
Elsipkitch9809 Apprentice
Joined: 21 Jul 2002 Posts: 186
|
Posted: Sun Oct 27, 2002 11:55 pm Post subject: |
|
|
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 I must be doing something wrong here. |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Oct 28, 2002 12:17 am Post subject: |
|
|
Ahh....are you typing:
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 |
|
|
|