Re: ip dinámica en ppp0 (sin root)
"José A.Navarro Ramón" wrote:
> Hola:
>
> Llevo varios días intentado que un script (no importa el lenguaje) me
> comunique únicamente la ip asignada por mi ISP en la interfaz ppp0. Lo
> puedo conseguir como root (el script llama a ifconfig al final me pasa
> mi ip).
> El problema es que quiero obtener la IP sin ser superusuario y no
> encuentro la forma.
"sudo" es la solución a tu problema:
* man sudo
* Documentación en /usr/doc/sudo
* fichero de configuración /etc/sudoers (¡ojo! solamente legible por root) contiene ejemplos
comentados.
> ¡Ah! Tengo potato.
Da igual ...
Saludos,
================================================================================
JUAN CARLOS AMENGUAL Suddenly I stop,
UNIVERSIDAD JAUME I but I know it's too late.
DEPARTAMENTO DE INFORMÁTICA I'm lost in a forest, all alone.
CAMPUS DE RIU SEC, EDIFICIO TI The girl was never there, it's always the same,
CASTELLON, 12071. SPAIN. I'm running towards nothing
Phone: +34 964 728361 again and again and again and again.
Fax: +34 964 728435 Robert Smith (The Cure)
e-mail: jcamen@inf.uji.es - "A Forest", Seventeen Seconds, 1980,
Fiction Rec. -
================================================================================
Reply to: