LinuxQuestions.org
Help answer threads with 0 replies.
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 01-29-2007, 02:28 PM   #1
Nivedita
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
missing commands


Hello people,

I use FC3.
I have a service:command not found problem.
Other commands like chkconfig are also missing.I think I've goofed up the installation a bit.How do I correct this?
IF the solution is mounting one of the FC3 cds..which one to use and how to go about it?

Thanks in advance.
 
Old 01-29-2007, 02:35 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Just a check: do you mean that if you "su" to root and try to do "chkconfig" or something like that, you get a "command not found" error? In that case everything is all right (if you log in as root: press ctrl+alt+f2 for example, and log in there, it should work). Fedora has, for some reason, different $PATH variable for root user and other users; therefore the sbin/ directories are not found on regular user's $PATH variables, and if you "su" to root (and not login really) you'll need to give the full path to the command, for example
Code:
/sbin/chkconfig
instead of just 'chkconfig'. Try if it helps.
 
Old 01-29-2007, 02:40 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well i'd say it's for a *ery* good security reason... normal users have no business messing with things in /sbin, whether they can run them or not, it's none of their business. of course other than logging in fresh, just use "su -" instad of plain old "su" and things will work fine too.
 
Old 01-31-2007, 11:59 AM   #4
Nivedita
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Seems bizarre .While su didnt work,su - did.Thanx!
 
Old 01-31-2007, 12:19 PM   #5
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Not bizarre at all - su retains your current PATH, which doesn't have /sbin in it. su - sources root's profile so you get a PATH variable with /sbin in it, hence you can now find those binaries. The thing to remember with UNIX/Linux is that anything you can't explain is because you can't explain it, not because something bizarre is happening.
 
Old 01-31-2007, 12:29 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by eddiebaby1023
The thing to remember with UNIX/Linux is that anything you can't explain is because you can't explain it, not because something bizarre is happening.
ANYTHING???!!! I'd be willing to bet that this is not a universal truth. First, it has been my experience that computers are not 100% deterministic. Second, Linux is full of long-standing Unix traditions, many of which have NO relevance to a casual desktop user---and it often takes a bit of digging to get a plausible explanation.

If I were to keep all the goodness of Linux, but simply organize things to be much simpler--optimizing for the application where 4 user accounts would be the upper limit--then it would be a veryy different picture. (I won't do this, by the way, because I value the universal nature of the OS---the fact that everyone on the planet has more or less the same picture of how things are organized..)
 
Old 01-31-2007, 12:31 PM   #7
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Maybe not a universal truth, but it's good guidance for newbies.
 
  


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
missing commands brianetilley SUSE / openSUSE 3 12-06-2005 01:54 PM
Missing commands lPrentice Linux - Newbie 4 05-24-2005 01:14 PM
SUSE 9.0 Commands - Missing? Mnemen Linux - Newbie 8 06-17-2004 03:10 PM
Missing Commands Titus28 Slackware 3 08-13-2003 06:12 AM
RH 7.3 missing commands beckwith Linux - Software 2 11-15-2002 04:33 AM


All times are GMT -5. The time now is 07:02 AM.

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