[Tutor] Running shell command

Ricardo Dueñas Parada rduenasp at gmail.com
Fri May 30 19:52:27 CEST 2008


Thanks for your answers.

How can I make that action more secure? Is there any way for running
the program from a regular user (non su) without having the password
within the code?

_Ricardo

2008/5/30 Alan Gauld <alan.gauld at btinternet.com>:

>
> "Brett Wilkins" <lupin at orcon.net.nz> wrote
>
>> Just as a side point, wouldn't the easiest way be to run the script under
>> sudo?
>> It's safer imho than putting the sudo password in programmatically...
>>
>
> Yes, but he is (presumably) already using sudo within os.system.
> He wants to avoid putting in the password so he must take the
> security risks associated with that approach.
>
> Caveat emptor as they say!
>
> Alan G
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080530/7b153e18/attachment.htm>


More information about the Tutor mailing list