dropping priveledges

K

Kamus of Kadizhar

Any way to get a python script to run with a specified user priveledges?

I have a script that has to run as a specific user.

Thanks,

-Kamus
 
D

David M. Wilson

Kamus of Kadizhar said:
Any way to get a python script to run with a specified user priveledges?

I have a script that has to run as a specific user.

For portability, doing it outside of the script is a better idea, eg.
using su or sudo, etc. Otherwise,

import os
help(os.setuid)
help(os.seteuid)


David.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,174
Messages
2,570,940
Members
47,485
Latest member
Andrewayne909

Latest Threads

Top