Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] executing a command that requires root from a python script



Hector Akamine wrote:
> I would like to execute a command that requires root privileges from a
> python script, for example something like "su -l -c ifconfig"
>  (I don't want my entire python script running with root privileges).

Can you use sudo instead? That's the sort of thing it was designed for.

-- 
10. The Earth quakes and the heavens rattle; the beasts of nature flock
together and the nations of men flock apart; volcanoes usher up heat
while elsewhere water becomes ice and melts; and then on other days it
just rains. - Prin. Dis.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links