美文网首页
vipw,vigr,visudo命令

vipw,vigr,visudo命令

作者: ifeelok0319 | 来源:发表于2017-06-08 19:55 被阅读93次

    The vipw and vigr commands edits the files /etc/passwd and /etc/group, respectively. With the -s flag, they will edit the shadow versions of those files, /etc/shadow and /etc/gshadow, respectively. The programs will set the appropriate locks to prevent file corruption. When looking for an editor, the programs will first try the environment variable $VISUAL, then the environment variable $EDITOR, and finally the default editor, vi(1).

    visudo edits the sudoers file in a safe fashion, analogous to vipw(8). visudo locks the sudoers file against multiple simultaneous edits, provides basic sanity checks, and checks for parse errors. If the sudoers file is currently being edited you will receive a message to try again later.

    相关文章

      网友评论

          本文标题:vipw,vigr,visudo命令

          本文链接:https://www.haomeiwen.com/subject/qovtqxtx.html