LinuxQuestions.org
Review your favorite Linux distribution.
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-05-2001, 01:17 PM   #1
jonilott
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
fanks.
 
Old 12-05-2001, 01:24 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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, 01:26 PM   #3
dorward
Member
 
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
Code:
su -
then run the command.
 
Old 12-05-2001, 01:31 PM   #4
jonilott
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, 01:47 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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, 01:02 PM   #6
jonilott
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 ?
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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