[Tutor] Best way to call a prog that requires root access in linux
pytutor.20.247ob at spamgourmet.com
pytutor.20.247ob at spamgourmet.com
Fri Jan 5 10:31:58 CET 2007
Hi all,
I've had a dig around on the forums about this and it was suggested to
use 'sudo'.
Well I have done this, I need to call tcpdump so I can sniff the
traffic and find the url's, I've modified my sudoers file so that for
this exe only I need no password.
This seems to be the best way since the program only runs the tcpdump
command as root (which incidently has a switch that allows you to drop
root privs once it's started) I want to distribute the program once
it's finished so it means explaining this (sudo bit) in the install
instructions.
Is this a good / bad way to achieve this?
BTW I use Ubuntu which uses sudo by default however anyone might use
it.
Thanks in advance,
Wayne.
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the Tutor
mailing list