On 31 Jan 2008, at 5:27 pm, sandro dentella wrote:
> i'd like to make an application that should execute commands with > permission that are not normally for www-data (eg: create user). Of > course > I know I could use sudo and execute the command via subprocess or > similar. But it happens that the command is a python script so i'd > prefer > to use the python library directly. > > Is there any reccomanded way/ a sudo-module or similar? > > thanks in advance > sandro > *:-) I generally think it's a bad idea for web apps to be able to run system commands. Another approach might be to save any data into the database that you need and then run a cronjob as a sudo privileged user to run the actual system jobs. This will obviously only work well if it's something that can be batched. Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---