This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2016-08-26 09:57:09upendra-k14setrecipients: + upendra-k14, rhettinger, terry.reedy, ncoghlan, ned.deily, dstufft, lorenzogotuned
2016-08-26 09:57:09upendra-k14setmessageid: <1472205429.64.0.612101791733.issue27051@psf.upfronthosting.co.za>
2016-08-26 09:57:09upendra-k14linkissue27051 messages
2016-08-26 09:57:09upendra-k14create