Linux - GeneralThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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:
code
--------------------------------------------------------
#su (if you are not logged on as root)
# your password
# find / -name shutdown
--------------------------------------------------------
code
-
Then, once you know the path:
-
code
----------------------------------------------------------
# /[path]/shutdown -h now
----------------------------------------------------------
code
-
After that, you will probably want to change your path parameter in /etc/profile. Look at http://www.linuxquestions.org/questi...highlight=PATH
Last edited by rdaves@earthlink.net; 07-21-2001 at 10:29 PM.
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.
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.