[2563] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Show Sl0 IP to normal user

daemon@ATHENA.MIT.EDU (Tigran Aivazian)
Wed Apr 17 13:12:03 1996

Date: 	Wed, 17 Apr 1996 16:32:51 +0000 (GMT)
From: Tigran Aivazian <tigran@zetnet.co.uk>
To: Bas Rijniersce <basrijn@hacom.nl>
cc: linux-net@vger.rutgers.edu
In-Reply-To: <2.2.32.19960416184729.006b3460@hacom.nl>





On Tue, 16 Apr 1996, Bas Rijniersce wrote:

> Hello,
> 
> Is there a program that shows the current (dynamicly assigned) IP for the
> slip inerface to a normal user. I want to write a script that will be
> executed by a normal user (my father, I don't want him to log-in as root
> :))) that will send an E-mail message to me with the current IP adres. This
> script will be executed after dip has made a Cslip connection to the Net (I
> will be in Engeland, my parents will be in Holland, and I want to have a
> telnet chat with them :-)).
> Both ifconfig and route are root-only :(
> Do you have any suggestions?

Yes, as you said use ifconfig(8) command. And no, it is not "root-only".
There is no harm in allowing everyone execute ifconfig (they wont be able
to up/down interfaces anyway).
The only problem is - if you dont want your dad to login as root, how are
you going to run dip? It requires root to up the sl0 interface and configure
routing tables.

Regards,
Tigran.



home help back first fref pref prev next nref lref last post