名称

vipw, vigr - 编辑密码、组、影子密码或影子组文件。

大纲

vipw [选项]
vigr [选项]

描述

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).

选项

The options which apply to the vipw and vigr commands are:
-g, --group
编辑 group 数据库。
-h, --help
显示帮助信息并退出。
-p, --passwd
编辑 passwd 数据库。
-q, --quiet
安静模式。
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. Only absolute paths are supported.
-s, --shadow
编辑 shadow 或 gshadow 数据库。

环境变量

VISUAL
要使用的编辑器。
EDITOR
Editor to be used if VISUAL is not set.

文件

/etc/group
组账户信息。
/etc/gshadow
安全组账户信息。
/etc/passwd
用户账户信息。
/etc/shadow
安全用户账户信息。

参见

vi(1), group(5), gshadow(5) , passwd(5), , shadow(5).

Recommended readings

Pages related to vipw you should read also: