And id you can not run that command as a simple user there must be a reason
why you were locked out of it! "My boss" As of 5 mins ago stated that. :)

P.S. Why make something so difficult ping the box that will tell you the ip
address.

Cheers,
-----------------------------------------------------------
Eric Peters     Mail:[EMAIL PROTECTED]
System Administrator Network Operations
Inherent Technologies Inc. 
office (503)224-6751 ext 224
-----------------------------------------------------------



-----Original Message-----
From: Ron Johnson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 01, 2000 3:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [expert] How to see IP address?


Sarang Lakare wrote:
> 
> >
> > grep IP /etc/sysconfig/network-scripts/ifcfg-eth0
> 
> This i thought was the best of all the solutions!.. it gives a bad output
> though which i'll have to filter out somehow..
> 
> btw, I want to know the IP as a user.. so cant' run ifconfig..
> 
> This, I think is the bottleneck of linux and _has_ to be improved.. Why
> shldn't a user know his own IP address?? why does he have to be root to do
> that!! its rediculous!..
> 
> -sarang

Users don't have IP addresses: devices do...
As a non-root user, this works grandly, and is SIMPLE:
$/sbin/ifconfig | grep "inet addr:"

Ron
-- 
+----------------------------------------------------------+
| Ron Johnson, Jr.        Home: [EMAIL PROTECTED]       |
| Jefferson, LA  USA      WWW : [EMAIL PROTECTED]     |
|                                                          |
| Most overused words: feel, cool/kewl, fun, myBlah.com    |
| Most underused word: think                               |
+----------------------------------------------------------+

Reply via email to