0

If you run a main script as admin, and then execute other scripts from it, do the child scripts also run with admin privileges?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
natalie22
  • 33
  • 5

1 Answers1

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