LinuxQuestions.org
Visit Jeremy's Blog.
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 03-13-2009, 06:34 AM   #1
pavan.manipal
Member
 
Registered: Mar 2009
Posts: 42

Rep: Reputation: 15
commands not working


Why i am unable to run all commands that usually works on redhat , but not working in fedora 9?
ex: chkconfig whn i typed it shows command not there
but man chkconfig ,it works fine,
and then ifconfig, xinetd -service is not avilable, like wise do i have to do any changes in fedora to enable all commands?
 
Old 03-13-2009, 06:37 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Did you try running them as a regular user, or logged in as root (either through a login program, or "su -" or similar)? If you were logged in as a normal user or otherwise had non-root environment, the sbin/ directories may not have been in the $PATH variable, and thus any executables there will not be "found" when you type in their name without full path.

Try
Code:
su -
ifconfig
if it still doesn't work, there's something odd going on.

The other way, if you don't have the directories in $PATH, is to simply run them with full path to the executable.
 
Old 03-13-2009, 07:30 AM   #3
pavan.manipal
Member
 
Registered: Mar 2009
Posts: 42

Original Poster
Rep: Reputation: 15
i got the answer

hi guys dont worry about these "command not found" caution, just set the environment variable u can access all the commands , i did my self
export PATH=$PATH:/sbin/
type it njoy the fedora;
actually the variables are set by default
here we have to set
 
Old 03-13-2009, 07:54 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
export PATH=$PATH:/sbin/
/sbin is by default not in the path from user with a reason.
It is only in the path from root.
You need root privileges to use them,
 
Old 03-14-2009, 06:11 AM   #5
pavan.manipal
Member
 
Registered: Mar 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
/sbin is by default not in the path from user with a reason.
It is only in the path from root.
You need root privileges to use them,
i am using my comp with root privilages
 
Old 03-14-2009, 06:39 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
i am using my comp with root privilages
Why would you do that?
Are you aware of the security risks?
Please don't do that, it's stupid.
 
Old 03-14-2009, 07:15 AM   #7
pavan.manipal
Member
 
Registered: Mar 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
Why would you do that?
Are you aware of the security risks?
Please don't do that, it's stupid.
actually m using VMware for linux
 
Old 03-14-2009, 07:51 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
How is VMWare relevant?

What repo is trying to say is that running anything as the "root" or administrative user is not a good idea.

Note that running with root privileges is not the same as "running as root". For example, if you get root privileges using "su", you do not get the root environment. For that, do "su -".
 
Old 03-14-2009, 08:02 AM   #9
pavan.manipal
Member
 
Registered: Mar 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
How is VMWare relevant?

What repo is trying to say is that running anything as the "root" or administrative user is not a good idea.

Note that running with root privileges is not the same as "running as root". For example, if you get root privileges using "su", you do not get the root environment. For that, do "su -".
thnx bro
 
  


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
some commands not working in crontab navaladi Linux - Newbie 2 01-17-2005 07:07 AM
certain commands aren't working on the terminal bariswheel Mandriva 4 12-22-2004 05:35 PM
commands are not working in kernel 2.6.9 slack_baby Linux - Software 8 11-27-2004 02:04 PM
Commands not working jongage Linux - Newbie 3 11-24-2004 10:29 PM
Why aren't common commands working? NewTuxGirl Linux - Newbie 8 06-07-2004 11:42 AM


All times are GMT -5. The time now is 08:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration