[英]How to allow other user to run a specific program as me like sudo, but both of us are not root in Linux
In Linux, I am user1 and my friend is user2 and we are in the same group.在Linux中,我是user1,我的朋友是user2,我们在同一个组。 In my home, I set read and execute permission to one program says
/home/user1/some_program
.在我的家里,我为一个程序设置了读取和执行权限,该程序说
/home/user1/some_program
。 How can I "grant" user2 to run /home/user1/some_program
from his session but run as my id?我怎样才能“授权” user2 从他的会话中运行
/home/user1/some_program
但以我的身份运行? We are both not root.我们都不是root。
setfacl -mu:username:rwx myfolder 或 myfile
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.