LinuxQuestions.org
Review your favorite Linux distribution.
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 07-02-2008, 04:27 PM   #1
ocicat
Member
 
Registered: May 2007
Posts: 208

Rep: Reputation: 48
ifconfig is unaccessible?


When attempting to find the assigned IP address, I was surprised to find out that ifconfig(8) is inaccessible as a regular used, but accessible while as root. Why are network configuration issues hidden from regular users?

Thanks.
 
Old 07-02-2008, 04:32 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Network management is an administrative task. What if an unexperienced user modifies the configuration of the network card and makes the machine unaccessible from other users in the same network? It's pretty unfair. Anyway as a user you can run ifconfig without arguments to retrieve the IP address, specifying its full path:
Code:
/sbin/ifconfig
 
Old 07-02-2008, 04:37 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by ocicat View Post
When attempting to find the assigned IP address, I was surprised to find out that ifconfig(8) is inaccessible as a regular used, but accessible while as root. Why are network configuration issues hidden from regular users?

Thanks.
You can also add /sbin to your path

Code:
root@host# export PATH=$PATH:/sbin
If you want it permanent you have to edit your .bash_profile file in your home directory.

-C
 
Old 07-02-2008, 05:01 PM   #4
ocicat
Member
 
Registered: May 2007
Posts: 208

Original Poster
Rep: Reputation: 48
Thanks, I had not thought that this would be a path issue. I've been a bad boy...
 
  


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
Network randomly unaccessible. Fluffy Linux - Networking 2 12-01-2007 08:47 AM
restoring swap file from unaccessible state guy_ripper Linux - Software 3 11-30-2006 07:54 AM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
Second Window partition unaccessible after FC2 install minnowshark Red Hat 0 08-07-2004 12:49 AM
disapearing and unaccessible subdirs NonSumPisces Linux - General 2 05-29-2004 11:51 AM

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

All times are GMT -5. The time now is 07:59 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