Running python script as another user

后端 未结 3 1094
南旧
南旧 2021-01-04 11:26

On a Linux box I want to run a Python script as another user.

I\'ve already made a wrapper program in C++ that calls the script, since I\'ve realized that the owners

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 12:09

    Give those users the ability to sudo su $dedicated_username and tailor the permissions on your system so that $dedicated_user has sufficient, but not excessive, access.

提交回复
热议问题