0

Say I have a program that requires administrator access to start up, but not for its regular runtime operations. Is there a way for the program to demote itself programmatically so that if a vulnerability in the program is exploited it won't have administrator privileges? I'm speaking more specifically here to Windows, but I'd presume, if it is possible, a similar process can be done on Linux or perhaps other operating systems.

Is this possible?

August H
  • 54
  • 2
  • It's probably possible and probably platform-dependent. I found posts on [how to do it in Linux](https://stackoverflow.com/questions/2699907/dropping-root-permissions-in-python) and [how to change privileges in the other direction on Windows](https://stackoverflow.com/questions/19672352/how-to-run-python-script-with-elevated-privilege-on-windows/19719292). – Dennis Sparrow Jul 03 '20 at 23:31

0 Answers0