VIPW
Section: 系统管理命令 (8)
Updated: 2023-03-23
查看本页索引
返回目录
名称
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).
Index
- 名称
-
- 大纲
-
- 描述
-
- 选项
-
- 环境变量
-
- 文件
-
- 参见
-
This document was created by
man2html,
using the manual pages.
Time: 03:16:10 GMT, July 01, 2024