Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th May 2008, 07:31 AM
roachy Offline
Registered User
 
Join Date: May 2008
Location: Yorkshire, UK
Age: 34
Posts: 72
Fedora 9 issues running programs

Hi all,

Apologies if this is a total newbie question - I've recently installed Fedora 9 and have a minor issue. When trying to run programs (iwconfig, ifconfig, traceroute etc) from the command line I have to escalate privileges to root and browse to the directory....

For example

Code:
root@rclinux02:/sbin# ./iwconfig
rather than just running from whichever directory I am in, as I have done in other distributions. Is this normal? Its a bit of a pain.

Any advice anyone can offer would be appreciated.....searched Google and had no luck....

Many thanks
Reply With Quote
  #2  
Old 29th May 2008, 07:41 AM
daverj Offline
Registered User
 
Join Date: Jan 2006
Location: Denver, CO USA
Posts: 670
if you want to run them from whichever directory you are in, you will need to include the directories the programs are in in your path. Currently, it probably looks something like this:
Code:
[davidj@afterhours ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/davidj/bin
simply modify the PATH line in the .bash_profile file in your home directory to look like this:
Code:
PATH=$PATH:$HOME/bin:/sbin
The source the file:
Code:
source .bash_profile
However, doing this may not be smart. Its not really a good idea to have directories dedicated to root execution in a non-root users path.

davidj
Reply With Quote
  #3  
Old 29th May 2008, 08:01 AM
roachy Offline
Registered User
 
Join Date: May 2008
Location: Yorkshire, UK
Age: 34
Posts: 72
Thanks for the prompt response there...that's helped loads!!

Can I ask for a little further explaination of the security implications - again, sorry to come across like a total newbie, but I'm curious as surely escalated permissions are still required to run programs, even with the amended path.

For example, if I try to change my NIC config using ifconfig, then I get "permission denied" - however if I use sudo then it works peachy.....this is what I was hoping to achieve, so thanks for all the help!

Reply With Quote
  #4  
Old 29th May 2008, 08:05 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
You need to keep root and regular user separate, root priv is to change your rig settings, install programs, etc. Regular user runs off of it, not change squat. Safety measures.
Reply With Quote
Reply

Tags
fedora, issues, programs, running

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 running windows programs off an external harddrive? Vampire Lazarus Using Fedora 0 24th May 2009 03:34 AM
performance issues running Fedora from an USB pen artu72 Using Fedora 9 27th March 2009 05:38 PM
Reinstalling Fedora 10.... and running into some major issues the_fury Using Fedora 15 6th March 2009 02:34 AM
Issues with Fedora 9 running on VMWare Player after recent updates Ijah Using Fedora 2 26th December 2008 09:06 AM
How to get programs running? akshat Using Fedora 5 11th April 2005 07:35 PM


Current GMT-time: 07:59 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat