这个 /etc/sudoers 语法是什么意思?

这个 /etc/sudoers 语法是什么意思?

有人能帮我把文件中的以下文本翻译/etc/sudoers成可读的英语吗?我想知道具体是什么- orpkale意思。

557149 ALL =(root) /bin/su - orpkale

答案1

这意味着允许用户557149以用户身份启动登录shell orpkale。来自man su

-, -l, --login
    Provide an environment similar to what the user would expect had
    the user logged in directly.

    When - is used, it must be specified before any username. For
    portability it is recommended to use it as last option, before any
    username. The other forms (-l and --login) do not have this
    restriction.

相关内容