LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-23-2002, 06:13 AM   #1
sdb6753
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Rep: Reputation: 0
Setting the path for sbin executables


Hi all,
I'm semi-new to Linux, and still trying to learn the ropes. Here's a problem that hopefully someone can answer:
I'm using Gnome on startup. If I open a terminal window and try to type in commands like iwconfig, ifconfig, chkconfig, etc (stuff that's in the /sbin directory), they won't execute. I have to go to the directory and manually type ./<filename> to get them to work. This is probably a simple problem of setting a correct path or something... can someone help me?
Also, what's the difference between putting the ./ in front or not? How do I make executables work so I don't need to do this? Thanks!
 
Old 11-23-2002, 06:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
this is a path issue. you will find that they're not on your path as a normal user as they are not the sort of things you should be messing with as a user. As root however they should be on your default path, as a normal user type "su -" and log in as root and they should be fine. you can add /sbin/ and similar to your path if you really wish by adding them to your own .bashrc:

export $PATH=$PATH:/sbin/

and so forth. for an explanation, have a look at... http://www.linuxquestions.org/questi...threadid=35026
 
  


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
/sbin path jstephens84 Fedora 3 11-16-2005 12:14 AM
/sbin path mickeyboa Fedora 7 11-13-2005 12:32 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 09:29 AM
$PATH for root to /sbin mickeyboa Fedora 6 01-15-2005 11:07 AM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
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