LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-30-2005, 09:13 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
a little trouble with sudo

sudo reboot doesn't work. it says command not found i have to su root and then reboot..

its like this for all the commands that are in /sbin. how do i make sudo recognize the stuff in /sbin/ ?
Old 11-30-2005, 09:55 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,042
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907

And welcome to LQ!

Change the sudo entry to say /sbin/reboot, and invoke
it with the full path
sudo /sbin/reboot



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
/etc/sudo darkleaf Linux - Software 2 05-14-2005 03:08 PM
su and sudo muman Linux - Security 9 12-30-2004 10:55 AM
sudo Obie Linux - Security 3 08-04-2004 06:01 PM
need help with sudo mla Linux - Software 4 10-02-2003 11:05 AM

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration