为什么建议/etc/sudoers
使用visudo
命令编辑文件?这是该文件的示例:
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
Run Code Online (Sandbox Code Playgroud)
有什么特殊原因吗?
Flu*_*lup 18
除了前面提到的语法检查之外,visudo
还会锁定,/etc/sudoers
以便两个用户不能同时对其进行编辑。同时尝试编辑将给出
visudo: /etc/sudoers 忙,请稍后再试
归档时间: |
|
查看次数: |
4317 次 |
最近记录: |