Linux "vipw" Command Line Options and Examples
edit the password, group, shadow-password or shadow-group file

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.


Usage:

vipw [options]


    vigr [options]






Command Line Options:

-g
Edit group database.
vipw -g ...
-h
Display help message and exit.
vipw -h ...
-p
Edit passwd database.
vipw -p ...
-R
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
vipw -R ...
-s
Edit shadow or gshadow database.ENVIRONMENTVISUALEditor to be used.EDITOREditor to be used if VISUAL is not set.FILES/etc/groupGroup account information./etc/gshadowSecure group account information./etc/passwdUser account information./etc/shadowSecure user account information.
vipw -s ...