LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-11-2005, 06:21 PM   #1
non-thrash
LQ Newbie
 
Registered: Jul 2005
Location: on the frontier, 2 hrs from anywhere
Distribution: Fedora Core 5, Knoppix
Posts: 4

Rep: Reputation: 0
Unhappy Why do I get "bash: chkconfig: command not found" when I try to run chkconfig?


I'm running FC3, trying to get automatic updates set up. I want to set up the yum daemon to be turned on. When I try to run chkconfig I get this:

"# chkconfig --level 345 yum on
bash: chkconfig: command not found"

Why?
 
Old 07-11-2005, 10:57 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
You could run a couple of commands to see if you have it installed.
For example:
# rpm -qa |grep chkconfig
chkconfig-1.3.11.1-1

# whereis chkconfig
chkconfig: /sbin/chkconfig /usr/share/man/man8/chkconfig.8.gz
 
Old 07-11-2005, 11:30 PM   #3
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Are you trying to run chkconfig as a regular user?

Try:

su -

and then

chkconfig ...
 
Old 07-14-2005, 08:34 AM   #4
non-thrash
LQ Newbie
 
Registered: Jul 2005
Location: on the frontier, 2 hrs from anywhere
Distribution: Fedora Core 5, Knoppix
Posts: 4

Original Poster
Rep: Reputation: 0
Question

I did:
# rpm -qa |grep chkconfig
and got back:
chkconfig-1.3.11.1-1

I also did:
# whereis chkconfig
and got back:
chkconfig: /sbin/chkconfig /usr/share/man/man8/chkconfig.8.gz

Why do I still get:
bash: chkconfig: command not found
 
Old 07-14-2005, 02:05 PM   #5
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Like "WhatsHisName" said

either type su - to use full root environment path or type /sbin/chkconfig if you type su without the "-". That should work for you
 
Old 07-14-2005, 03:24 PM   #6
non-thrash
LQ Newbie
 
Registered: Jul 2005
Location: on the frontier, 2 hrs from anywhere
Distribution: Fedora Core 5, Knoppix
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up Thanks!

Thanks for the clarification on su -
That's what it was, it works now!
 
Old 05-13-2007, 11:27 PM   #7
babyofN
LQ Newbie
 
Registered: May 2007
Posts: 2

Rep: Reputation: 0
sorry, but i do not use commands: useradd (bash: useradd: command not found), or chkconfig (bash: chkconfig: command not found).
Quote:
Try:

su -

and then

chkconfig ...
I try, but not work, please 4me a concrete example
 
Old 05-14-2007, 12:56 AM   #8
blkcamarozr28
Member
 
Registered: Oct 2005
Location: Honolulu, Hawaii
Distribution: Fedora Core 1-7, CentOS 4/5, Ubuntu/Xubuntu
Posts: 63

Rep: Reputation: 15
The problem is there is not path to those files from the normal linux user. You have to su or login as root or add the paths to those commands. If its complicated for you try logging in as root and running those commands.
 
Old 05-14-2007, 03:46 AM   #9
babyofN
LQ Newbie
 
Registered: May 2007
Posts: 2

Rep: Reputation: 0
Thanks, I see ^^
 
Old 05-15-2010, 01:48 PM   #10
afaaro
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
This has helped me [ /sbin/chkconfig httpd on ]
 
Old 05-20-2010, 12:31 PM   #11
JD50
Member
 
Registered: Nov 2007
Location: Virginia
Distribution: Fedora, RHEL, CentOS
Posts: 67

Rep: Reputation: 17
Quote:
Originally Posted by afaaro View Post
This has helped me [ /sbin/chkconfig httpd on ]
wtf? This is a 5 year old thread.
 
  


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
chkconfig not found by bash, but is installed JimBass Linux - Newbie 4 05-09-2010 01:32 PM
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
"bash: run: command not found" ? neuropulse Linux - Newbie 10 04-23-2005 07:58 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
Is there an equivalent cmd to "chkconfig (redhat)" in Debian? davidas Debian 3 04-08-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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