LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-19-2004, 07:08 PM   #1
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
chkconfig not found by bash, but is installed


Hello all!

I was playing with the chkconfig command at work today, and I liked the easy manipulation of start up scripts. I came home hoping to finally get a few things to start at boot, and I hit a wierd problem.

I typed chkconfig from a regular user, and my machine said,
"bash: chkconfig: command not found"
I thought I would need root permissions, so I did su and tried again, and again I received,
"bash: chkconfig: command not found".

Confused, I hit
"man chkconfig"
and the man page came up.

Google pointed me to this web page (as it does with almost every one of my linux questions), and I found it was possible that the chkconfig package wasn't installed. I downloaded chkconfig-1.3.8-1.i386.rpm, became su, and gave the command,
"rpm -i chkconfig-1.3.8-1.i386.rpm"
which gave the response,
"package chkconfig-1.3.8-1 is already installed".

so I again tried typing in chkconfig and was again given,
"bash: chkconfig: command not found"

So it is installed, but won't run -
any ideas on how to correct this will be highly apprecaiated!

Peace,
JimBass
 
Old 03-19-2004, 07:38 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
"bash" uses the "$PATH" variable to detremine where to find executable programs.

"chkconfig" probably is in root's "$PATH" but not in your "$PATH"
and by using "su" you only get a shell with root user rights, but not
with root's environment (includung $PATH). Use "su -" to get root
rights and environment.
 
Old 03-19-2004, 07:46 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
Good call, that was all it was!

Thanks for the help.

Peace,
JimBass
 
Old 03-19-2004, 08:30 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
no problem
 
Old 05-09-2010, 01:32 PM   #5
naveedh22
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
it works

thanks a lot
 
  


Reply



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: command not found! Adil_uk Linux - General 14 04-09-2012 01:04 AM
bash: command not found hamish Linux - Newbie 7 02-23-2011 04:28 PM
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 07:41 PM
Bash says that config (ifconfig, chkconfig and others) don't exist Pedal2Metal Linux - Software 2 10-21-2004 05:50 AM

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

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
Open Source Consulting | Domain Registration