Execute commands with su from inside a python program

后端 未结 0 1874
眼角桃花
眼角桃花 2021-01-15 04:36

I want to make a python program which changes user, supplies the password for su and executes a command. Without using SUDO. Preferably with subprocess

For example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题