/ etc / sudoers中的这样的东西似乎不起作用:
Jsmith ALL=(ALL) nopASSWD: /usr/local/tomcat7/bin@R_419_6120@ 我想你差不多了.把/放在目录规范的末尾
Jsmith ALL=(ALL) nopASSWD: /usr/local/tomcat7/bin/
来自sudoers手册页
总结A directory is a fully qualifIEd path name ending in a ‘/’. When you specify a directory in a Cmnd_List,the user will be able to run any file within that directory (but not in any subdirectorIEs therein).
以上是内存溢出为你收集整理的linux – 如何仅向特定脚本文件授予sudo权限?全部内容,希望文章能够帮你解决linux – 如何仅向特定脚本文件授予sudo权限?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)