View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-21-2001, 06:11 PM   #1
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Rep: Reputation: 15
Question shutdown command not found

First off, I'd like to thank this place for helping me fix the linuxconf problem with RedHat 7.1 - I got that info from reading past threads.

So now that I got linuxconf up and running, I messed around with permissions a bit, and now any shutdown command gives me the following message: "bash: shutdown: command not found."

It doesn't matter what user I'm logged in as. I even created a new user account, gave it the shutdown permission, and that doesn't work either.

I realize that linux boxes rarely need to be shutdown, and "poweroff" is an option, but it's annoying because it used to work!

Ideas??? Thanx.
Old 07-21-2001, 08:26 PM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
Did you try the halt command?
Old 07-21-2001, 10:15 PM   #3
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
How about the Path?

If you are getting messages that say the command is not found, it is possible that you have not defined the path properly. To find the full path for the shutdown command issue the following command:

#su (if you are not logged on as root)
# your password
# find / -name shutdown
Then, once you know the path:
# /[path]/shutdown -h now
After that, you will probably want to change your path parameter in /etc/profile. Look at

Last edited by; 07-21-2001 at 10:29 PM.
Old 07-23-2001, 08:35 AM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
does a ctrl-alt-del do anything for you at least?
Old 07-23-2001, 12:54 PM   #5
LQ Newbie
Registered: Jul 2001
Distribution: LMdk 7.x mostly
Posts: 19

Rep: Reputation: 0

when you login as root, use "su -" to include root's profile, only in RedHat products. The shutdown command should be located in /sbin or /usr/sbin, and these paths should be in root's profile.

If you don't need to send a terminal message out to users, then just use "init 0" to shutdown or "init 6" to restart in multi-user mode.
Old 07-23-2001, 10:53 PM   #6
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
or to put it simply, just make absoluteley sure that you are logged in as root when running that. It is considered a system admin task that only root is authorized to do
Old 07-24-2001, 05:48 PM   #7
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
Hey guys - thanks for all the help! I posted a reply a couple days ago, but somehow it didn't make it up. Anyway, if I type "/sbin/shutdown now" everything seems to work, though it hanged that last time I did it. I just used "poweroff" and things went down quick and smooth. I find it odd that I have to type "/sbin/shutdown" even if I'm in the sbin. Same thing with linuxconf. Anyway, the latest is that I managed to get my modem up and working (woooo!). Any suggestions out there for a good mail program? I like using Opera for surfin', but there doesn't seem to be any mail program bundled with it. What do the "pros" use?

Thanks again,


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown command? MikeZila Linux - Newbie 7 07-27-2008 05:09 PM
shutdown command xviddivxoggmp3 Red Hat 5 05-12-2004 04:48 PM
shutdown command mikedelo Linux - Software 7 03-15-2004 08:37 AM
shutdown command Oakstaff Linux - Newbie 8 11-18-2003 09:47 PM
bash: shutdown: command not found Mimicafe Linux - General 7 02-23-2003 02:44 AM

All times are GMT -5. The time now is 07:55 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