If you run a main script as admin, and then execute other scripts from it, do the child scripts also run with admin privileges?
Asked
Active
Viewed 33 times
0
-
How are you executing other scripts from it? – xihtyM Mar 22 '23 at 09:05
-
Which OS are you using? – DobbyTheElf Mar 22 '23 at 10:15
-
sorry, my OS is Windows 10. I'm executing with subprocess.Popen. Thanks! – natalie22 Mar 23 '23 at 10:05
1 Answers
0
With Linux, by default, yes. Although this can be changed by spawning the process with a different uid/gid. There is a good example here:
Run child processes as different user from a long running Python process

DobbyTheElf
- 604
- 6
- 21