LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-20-2003, 05:40 PM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
cant find command shutdown ???


Hey guys.

when im logged in as root, i can shutdown the computer fine with the shutdown (forget the option) now

but when loged in as a regular user i cant, not even in superuser mode, whassup ?
 
Old 05-20-2003, 05:45 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Yeah the reason is that the shutdown command is in /sbin which is not in a regular users path and even if it was they do not have permissions, or should not, to execute that command. When you su to root try:

su -

This will log you in as root with all of roots paths set correctly.
 
Old 05-20-2003, 10:11 PM   #3
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
You can't use it with a normal user beacuse of security reasons.. you have to su - as he Crashed_Again well said.
 
Old 06-14-2003, 02:12 PM   #4
Dunno_Linux
LQ Newbie
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.0 (KDE)
Posts: 4

Rep: Reputation: 0
Is there a way to allow users to shutdown the system without having the root password? I am VERY new to this. I just performed my first install last night and I am still learning to configure everything...
 
Old 06-14-2003, 02:25 PM   #5
linux_guy2003
Member
 
Registered: Jun 2003
Posts: 30

Rep: Reputation: 15
try poweroff
 
Old 06-14-2003, 03:16 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Quote:
Originally posted by Dunno_Linux
Is there a way to allow users to shutdown the system without having the root password? I am VERY new to this. I just performed my first install last night and I am still learning to configure everything...
Check out sudo.
 
  


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
Shutdown command? MikeZila Linux - Newbie 7 07-27-2008 06:09 PM
where to find improper shutdown logs linylion Linux - General 4 09-08-2004 12:59 AM
shutdown command xviddivxoggmp3 Red Hat 5 05-12-2004 05:48 PM
shutdown command Oakstaff Linux - Newbie 8 11-18-2003 10:47 PM
shutdown command nelly_boy Linux - Software 11 08-03-2003 07:04 AM


All times are GMT -5. The time now is 05:56 PM.

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