Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-05-2001, 12:17 PM   #1
LQ Newbie
Registered: Dec 2001
Posts: 3

Rep: Reputation: 0
Angry "command not found"

Hi, 1st time user, red hat 7.1
ok, logged in ok
tried a couple of command like 'shutdowd -h now'
command not found
tried other commands my friends told me worked for various tasks
again command not found
everything seems fine, gui ok, but shell commands seem to be missing or my paths are incorrect ???
what have i done wrong then ???
pls help
Old 12-05-2001, 12:24 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 250Reputation: 250Reputation: 250
if your trying the shutdown -h now command as a regular user, it isn't set in the users path by default, probably the case with some other commands usually used by root..
usually halt will work for the shutdown command for a regular user..
Old 12-05-2001, 12:26 PM   #3
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
shutdown is a system administration command.

It is designed to be run only by root so the program is placed in an sbin directory.

Under Red Hat the sbin directories are not part of a normal user's $PATH.

To run them you need a root logon shell.

Either log on as root, or preferably
su -
then run the command.
Old 12-05-2001, 12:31 PM   #4
LQ Newbie
Registered: Dec 2001
Posts: 3

Original Poster
Rep: Reputation: 0
no users set up yet, only root setup and im looged in as root ???
p.s. fanks for reply.
Old 12-05-2001, 12:47 PM   #5
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
no users? hmmm not good....

well it must be in /sbin always is. look at teh ls output for that dircetory, if it's there, then there's a path problem, if not.. well you're probably asleep... you'll wake up soon
Old 12-08-2001, 12:02 PM   #6
LQ Newbie
Registered: Dec 2001
Posts: 3

Original Poster
Rep: Reputation: 0
am awake fanks m8, if i cd to sbin and ls, all option are listed but shutdown and others are darker green than other options, lighter green option i can access other i have no access to ? and as logged in as root that seems weird, any ideas mr guru or are you beat ?


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
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
Samba 3.0.0 installed on RH WS3, but "net join" command not found chloevu Linux - Networking 0 07-13-2004 03:20 PM
"net ads join" command not found with samba 3.0.2a tisource Linux - Networking 2 04-15-2004 03:38 PM
Benoit's Alcatel - pppd call adsl "command not found" GM287 Linux - Networking 5 04-04-2004 09:56 AM > Forums > Linux Forums > Linux - Newbie

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