{
    "mode": "man",
    "parameter": "vipw",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/vipw/8/json",
    "generated": "2026-06-10T16:23:38Z",
    "synopsis": "vipw [options]\nvigr [options]",
    "sections": {
        "NAME": {
            "content": "vipw, vigr - edit the password, group, shadow-password or shadow-group file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "vipw [options]\n\nvigr [options]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The vipw and vigr commands edits the files /etc/passwd and /etc/group, respectively. With the",
            "subsections": [
                {
                    "name": "-s",
                    "content": "respectively. The programs will set the appropriate locks to prevent file corruption. When\nlooking for an editor, the programs will first try the environment variable $VISUAL, then the\nenvironment variable $EDITOR, and finally the default editor, vi(1).\n",
                    "flag": "-s"
                }
            ]
        },
        "OPTIONS": {
            "content": "The options which apply to the vipw and vigr commands are:\n",
            "subsections": [
                {
                    "name": "-g --group",
                    "content": "Edit group database.\n",
                    "flag": "-g",
                    "long": "--group"
                },
                {
                    "name": "-h --help",
                    "content": "Display help message and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-p --passwd",
                    "content": "Edit passwd database.\n",
                    "flag": "-p",
                    "long": "--passwd"
                },
                {
                    "name": "-q --quiet",
                    "content": "Quiet mode.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-R --root",
                    "content": "Apply changes in the CHROOTDIR directory and use the configuration files from the\nCHROOTDIR directory.\n",
                    "flag": "-R",
                    "long": "--root"
                },
                {
                    "name": "-s --shadow",
                    "content": "Edit shadow or gshadow database.\n",
                    "flag": "-s",
                    "long": "--shadow"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "VISUAL\nEditor to be used.\n\nEDITOR\nEditor to be used if VISUAL is not set.\n",
            "subsections": []
        },
        "FILES": {
            "content": "/etc/group\nGroup account information.\n\n/etc/gshadow\nSecure group account information.\n\n/etc/passwd\nUser account information.\n\n/etc/shadow\nSecure user account information.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "vi(1), group(5), gshadow(5) , passwd(5), , shadow(5).\n\n\n\nshadow-utils 4.8.1                           02/06/2024                                      VIPW(8)",
            "subsections": []
        }
    },
    "summary": "vipw, vigr - edit the password, group, shadow-password or shadow-group file",
    "flags": [
        {
            "flag": "-g",
            "long": "--group",
            "arg": null,
            "description": "Edit group database."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Display help message and exit."
        },
        {
            "flag": "-p",
            "long": "--passwd",
            "arg": null,
            "description": "Edit passwd database."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Quiet mode."
        },
        {
            "flag": "-R",
            "long": "--root",
            "arg": null,
            "description": "Apply changes in the CHROOTDIR directory and use the configuration files from the CHROOTDIR directory."
        },
        {
            "flag": "-s",
            "long": "--shadow",
            "arg": null,
            "description": "Edit shadow or gshadow database."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "vi",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/vi/1/json"
        },
        {
            "name": "group",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/group/5/json"
        },
        {
            "name": "gshadow",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/gshadow/5/json"
        },
        {
            "name": "passwd",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/passwd/5/json"
        },
        {
            "name": "shadow",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/shadow/5/json"
        }
    ]
}