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.


vipw [options]

    vigr [options]

Command Line Options:

Edit group database.
vipw -g ...
Display help message and exit.
vipw -h ...
Edit passwd database.
vipw -p ...
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
vipw -R ...
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 ...