LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-30-2003, 02:32 AM   #1
newbie03
Newbie
 
Registered: Dec 2003
Location: Georgia
Distribution: RH 9, Fedora Core, DSL & Knoppix
Posts: 10

Rep: Reputation: 0
Question Sudoers -- What am I missing


Hello All
I have added the following line "newbie03 ALL=(ALL) ALL" to my sudoers file. I have even verified that sudo will run as root "---s--x--x 1 root root 84920 Jan 25 2003 sudo" But when I log in with my test account newbie03 & try to sudo
"[newbie03@tsbx newbie03]$ sudo shutdown -r now
sudo: shutdown: command not found"

What did I miss?
 
Old 12-30-2003, 03:05 AM   #2
newbie03
Newbie
 
Registered: Dec 2003
Location: Georgia
Distribution: RH 9, Fedora Core, DSL & Knoppix
Posts: 10

Original Poster
Rep: Reputation: 0
Lightbulb ok

OK I a bit and discovered that if I type the path of the command it works! is this how it normally works?
 
Old 12-30-2003, 04:39 AM   #3
PbO
Member
 
Registered: Nov 2003
Location: BC, Canada
Distribution: Slackware 11.0
Posts: 30

Rep: Reputation: 15
/sbin is in root's path, but not in newbie03's path. You can check your path by
doing "echo $PATH" at the prompt.

Add something like PATH=$PATH:/sbin to newbie03's ".profile", which should be in your home directory. If it isn't, then just create it with that line in it.

Or, if that sounds like giving newbie03 too much easy access to /sbin, then just add a line like "alias shutdown='/sbin/shutdown'" to .profile. That should work, no?
 
Old 12-30-2003, 12:16 PM   #4
newbie03
Newbie
 
Registered: Dec 2003
Location: Georgia
Distribution: RH 9, Fedora Core, DSL & Knoppix
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up

thanks for the info
 
  


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
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 06:03 PM
sudoers???? yenonn Slackware 6 02-10-2004 04:09 AM
Sudoers Fonke0412 Linux - Newbie 3 08-10-2003 04:54 PM
sudoers........ help linuxlah Linux - General 4 01-15-2003 12:54 AM
help with /etc/sudoers keevitaja Linux - Newbie 5 08-17-2002 02:00 PM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration