vigr
(8)edit the password, group, shadow-password or shadow-group file
Options
6-g--groupEdit group database.
-h--helpDisplay help message and exit.
-p--passwdEdit passwd database.
-q--quietQuiet mode.
-R--rootCHROOT_DIRApply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. Only absolute paths are supported.
-s--shadowEdit shadow or gshadow database.
DESCRIPTION
The vipw and vigr commands edit 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).