{
    "content": [
        {
            "type": "text",
            "text": "# vipw (info)\n\n## NAME\n\nvipw, vigr - edit the password, group, shadow-password or shadow-group file\n\n## SYNOPSIS\n\nvipw [options]\nvigr [options]\n\n## DESCRIPTION\n\nThe vipw and vigr commands edits the files /etc/passwd and /etc/group,\nrespectively. With the -s flag, they will edit the shadow versions of\nthose files, /etc/shadow and /etc/gshadow, respectively. The programs\nwill set the appropriate locks to prevent file corruption. When looking\nfor an editor, the programs will first try the environment variable\n$VISUAL, then the environment variable $EDITOR, and finally the default\neditor, vi(1).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (5 subsections)\n- **ENVIRONMENT**\n- **FILES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "vipw",
        "section": "",
        "mode": "info",
        "summary": "vipw, vigr - edit the password, group, shadow-password or shadow-group file",
        "synopsis": "vipw [options]\nvigr [options]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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. -R, --root CHROOTDIR 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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-g, --group",
                        "lines": 2,
                        "flag": "-g",
                        "long": "--group"
                    },
                    {
                        "name": "-h, --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-p, --passwd",
                        "lines": 2,
                        "flag": "-p",
                        "long": "--passwd"
                    },
                    {
                        "name": "-q, --quiet",
                        "lines": 6,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-s, --shadow",
                        "lines": 2,
                        "flag": "-s",
                        "long": "--shadow"
                    }
                ]
            },
            {
                "name": "ENVIRONMENT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "vipw, vigr - edit the password, group, shadow-password or shadow-group\nfile\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,\nrespectively. With the -s flag, they will edit the shadow versions of\nthose files, /etc/shadow and /etc/gshadow, respectively. The programs\nwill set the appropriate locks to prevent file corruption. When looking\nfor an editor, the programs will first try the environment variable\n$VISUAL, then the environment variable $EDITOR, and finally the default\neditor, vi(1).\n",
                "subsections": []
            },
            "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\n-R, --root CHROOTDIR\nApply changes in the CHROOTDIR directory and use the configuration\nfiles from the CHROOTDIR directory.\n",
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "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\nshadow-utils 4.8.1                02/06/2024                           VIPW(8)",
                "subsections": []
            }
        }
    }
}