阅读背景:

python脚本中的身份验证以root身份运行

来源:互联网 

I am doing a project in Linux at system level in Python. So that, I want to know that if i am running my code as a normal user and if i am accessing system files then it should have root permissions for it, then how can i prompt for root password and run further code as superuser. I want to know that, how to run python script as superuser with password prompt for it..I am doing a project in Linux at system level i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: