[2548] in linux-net channel archive
Re: Show Sl0 IP to normal user
daemon@ATHENA.MIT.EDU (Nicolas Sayer)
Wed Apr 17 04:47:41 1996
Date: Wed, 17 Apr 1996 09:31:56 +0200
To: Bas Rijniersce <basrijn@hacom.nl>
From: Nicolas Sayer <Nicolas.Sayer@inria.fr>
Cc: linux-net@vger.rutgers.edu
>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 ro=
ot
>:))) 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 N=
et (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?
I sugest you use a script with a setuid to root. so that your father ca=
n run
it, but it will be ran is if the root started it. You can even automati=
cly
send a mail with your ip with this script. You'll be able to get the ip=
from
the output of ifconfig...
please keep in touch if you need more infos...
_ _
( )_( )
\. ./ \
____________________________=3D.=3D__ \________________________
/ -=3D- Nicolas Sayer -=3D- / m " m _/ linux: Made In Heaven!/=
=BA
/=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D/=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D/_/
/ -=3DComputer Scientist=3D- / Paris, France. S /
/ Student / SysAdmin / Tel/Fax: 33 (1) 45.20.56.90 ___/
/ Developper / Advice / Pager: 33 06.08.36.86 / /
/ FOR HIRE! /A EMBAUCHER! / <Nicolas.Sayer@inria.fr> / /
/ see WebSite for infos / http://nsp.inria.fr/~sayer / /
/_________________________/_______________________________/ /
=BA________________________/\_______________________________=BA/
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2i
mQCNAzDyangAAAEEANDo/MrGPZCbTsUOXvn+CC9Mk6INQvK9wzYKvetpxOcNOWwy
F5JwKKudtH74aJ2PzdOX3Z1JKPY2ItmHrCrSEHt2e6iHpHwZqGrTCz9qmhXMrK3K
lPpNcjqfELhRBzAJkC7kWGnQ8EiKh1u94efku2VKqvEEYNesTdv2p9VXUjlJAAUR
tCFOaWNvbGFzIFNheWVyIDxzYXllckBpbWFnaW5ldC5mcj4=3D
=3D0hKu
-----END PGP PUBLIC KEY BLOCK-----