LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-30-2005, 09:13 PM   #1
vardhan
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Hi,

And welcome to LQ!


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


Cheers,
Tink
 
  


Reply


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 06:32 AM.

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