[Tutor] Best way to call a prog that requires root access in linux

Alan Gauld alan.gauld at btinternet.com
Fri Jan 5 16:44:54 CET 2007


<pytutor.20.247ob at spamgourmet.com> wrote

> I've had a dig around on the forums about this and it was suggested 
> to
> use 'sudo'.

sudo is the best way to run applications with a different access 
level.

Since this is an OS thing usinbg sudo is the right solution IMHO.
If you ever want to port your code to XP or VMS or whatever you
would need to rewrite the security model if you tried to do it
in the application. Much better to handle the issue in the OS.

Thats my view at least...


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list