Running Python scripts under a different user

Laurent Pointal laurent.pointal at limsi.fr
Mon May 29 09:47:46 EDT 2006


Bernard Lebel a écrit :
> On 5/26/06, Laszlo Nagy <gandalf at designaproduct.biz> wrote:
>> For Windows, you can use the 'runas.exe' program. But it requires a
>> password too.
>>
>>  From what you wrote, I think that you need to change architecture. You
>> should write your own service rather than write tricky programs. This
>> way you can develop your own security system, and restrict access to
>> specific files/programs. You can write tools that can connect to your
>> service. The service program can be ran on the background, with
>> sufficient privileges. How does it sound?
> 
> [Bermard] Any ressource you could point me to as to write services?
> I'm totally unexperienced with that.

As you run under Unix, you may be interrested into the daemon.py script.

See Unix Daemon in page http://homepage.hispeed.ch/py430/python/index.html

And too: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731


See also google links for python + daemon

A+

Laurent.



More information about the Python-list mailing list