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



On Tue, 7 Aug 2007, tlug@example.com wrote:

I second Simon's suggestion for using sudo.  Simply add a line in your sudo
configuration file that specifies that no password is required to run the
command that you need root privileges for.

Or "sudo -v" before you start.

Or export SUDO_PROMPT="sudo pw for %u@example.com:" and you'll be nicely prompted
for your sudo pw once for all operations over the next few minutes.

cjs
--
Curt Sampson       <cjs@example.com>        +81 90 7737 2974
Mobile sites and software consulting: http://www.starling-software.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links