finding IP address of ethernet card

1999-12-02 Thread Bryan Scaringe
How would a user find out the IP address assigned to
eth0.  This is a normal user, not a sys-op, so he
doesn't have access to ifconfig.

Thanks,
Bryan


Re: finding IP address of ethernet card

1999-12-02 Thread Marcin Kurc
-rwxr-xr-x1 root root45296 Nov 18 07:12 /sbin/ifconfig

so I don't see a problem to execute it as user:

[EMAIL PROTECTED]:~]$ id
uid=1000(siemce) gid=1000(siemce) groups=1000(siemce)
[EMAIL PROTECTED]:~]$ /sbin/ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 08:00:20:77:38:29
  inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:5249 errors:0 dropped:0 overruns:0 frame:0
  TX packets:5873 errors:1 dropped:0 overruns:0 carrier:1
  collisions:0 txqueuelen:100
  Interrupt:38 Base address:0xd400


On Wed, Dec 01, 1999 at 11:12:01PM -0500, Bryan Scaringe wrote: 
 How would a user find out the IP address assigned to
 eth0.  This is a normal user, not a sys-op, so he
 doesn't have access to ifconfig.
 
 Thanks,
 Bryan
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 
Marcin Kurc
Indiana Institute of Technology
System Administrator
http://me.indtech.edu   http://www.indtech.edu


Re: finding IP address of ethernet card

1999-12-02 Thread Phil Brutsche
A long time ago, in a galaxy far, far way, someone said...

 How would a user find out the IP address assigned to eth0.  This is a
 normal user, not a sys-op, so he doesn't have access to ifconfig.

Even a normal user can run ifconfig; the normal user just can't change
anything with ifconfig.

Run this as a normal user:

'/sbin/ifconfig eth0'

You'll get something like this:
eth0  Link encap:Ethernet  HWaddr 00:11:22:33:44:55
  inet addr:192.168.0.1  Bcast:147.134.27.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:14255398 errors:0 dropped:0 overruns:0 frame:0
  TX packets:6075619 errors:1 dropped:0 overruns:0 carrier:2
  collisions:1617618 txqueuelen:100
  Interrupt:11 Base address:0xb400

-- 
--
Phil Brutsche   [EMAIL PROTECTED]

There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe. - Albert Einstein


Re: finding IP address of ethernet card

1999-12-02 Thread Marc-Adrian Napoli
Hi all,


 A long time ago, in a galaxy far, far way, someone said...

  How would a user find out the IP address assigned to eth0.  This is a
  normal user, not a sys-op, so he doesn't have access to ifconfig.

 Even a normal user can run ifconfig; the normal user just can't change
 anything with ifconfig.

 Run this as a normal user:

 '/sbin/ifconfig eth0'

I think that was the whole point. A user doesn't have /sbin in their path by
default on most machines, so typing just a straight ifconfig at the prompt
usually doens't get anyone where.

There's a lesson for ya. Always try the full path to something before you
convince yourself you don't have access/can't see the file.

Regards,

Marc-Adrian Napoli
Connect Infobahn Australia
+61 2 92811750



Re: finding IP address of ethernet card

1999-12-02 Thread Kenneth Scharf
The trick (as you showed, but didn't point out) is
that you must either have /sbin in you path (which
root does) or specifiy it when you try to run
ifconfig.

Mere mortals must run ifconfig as such:
/sbin/ifconfig

Root can just type ifconfig, because /sbin is in his
path.  Or course mere mortals can't bring up the net
or  shut it down with ifconfig..(least I hope
not).




=
Amateur Radio, when all else fails!

http://www.qsl.net/wa2mze

Debian Gnu Linux, Live Free or .


__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com