Jump to content

vipw

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Citation bot (talk | contribs) at 03:35, 26 October 2023 (Removed parameters. | Use this bot. Report bugs. | #UCB_CommandLine). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


vipw is a small computer program which enables a Unix system administrator to safely and securely edit user or group-related files while setting a proper lock to prevent other users from modifying them until they are saved by the current user.[1]

The following is the list of user and group files that can be modified by the vipw utility.

  • /etc/passwd“: User account information.
  • /etc/shadow“: Secure user account information.
  • /etc/group“: Group account information.
  • /etc/gshadow“: Secure group account information.

This way, you can edit the system files securely using your favorite editor set to the $VISUAL or $EDITOR environment variable, instead of accessing them directly from the CLI editor like GNU Nano or VIM. , which is insecure.

References

[edit]
  1. ^ Redfield, David. "Linux Vipw and Vigr Commands Explained".
  • The vipw manpage, 26 September 1997, in the Debian passwd package version 1:4.0.13-6
[edit]