Message273699
| Author |
upendra-k14 |
| Recipients |
dstufft, lorenzogotuned, ncoghlan, ned.deily, rhettinger, terry.reedy, upendra-k14 |
| Date |
2016年08月26日.09:57:09 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1472205429.64.0.612101791733.issue27051@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Can I somehow change the setup.py script such that I can create a new set of (group, user) with specific privileges only needed for installation and uninstallation.
Once a new set of (group, user) is created, I can always do
os.setgid(gid) and os.setuid(uid)
But, I can't figure out how to change setup.py to create a new set of permissions during installation. It should be possible because at time of installation setup.py runs with sudo privileges. |
|