VIPW(8) System Administration VIPW(8)

vipw, vigr - edit the password or group file

vipw [options]

vigr [options]

vipw edits the password file after setting the appropriate locks, and does any necessary processing after the password file is unlocked. If the password file is already locked for editing by another user, vipw will ask you to try again later. The default editor for vipw and vigr is vi(1). vigr edits the group file in the same manner as vipw does the passwd file.

-h, --help

Display help text and exit.

-V, --version

Print version and exit.

If the following environment variable exists, it will be utilized by vipw and vigr:


The editor specified by the string EDITOR will be invoked instead of the default editor vi(1).

The vipw command appeared in 4.0BSD. The vigr command appeared in Util-Linux 2.6.

vi(1), passwd(1), flock(2), passwd(5)

The vigr and vipw commands are part of the util-linux package and are available from Linux Kernel Archive

2024-05-06 util-linux 2.40.1