Manpages

名 称

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