{
    "content": [
        {
            "type": "text",
            "text": "# vipw (man)\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, respectively. With the\n\n## TLDR\n\n> Edit the password file.\n\n- Edit the password file:\n  `vipw`\n- Display version:\n  `vipw {{-V|--version}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (1 subsections)\n- **OPTIONS** (6 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": "man",
        "summary": "vipw, vigr - edit the password, group, shadow-password or shadow-group file",
        "synopsis": "vipw [options]\nvigr [options]",
        "tldr_summary": "Edit the password file.",
        "tldr_examples": [
            {
                "description": "Edit the password file",
                "command": "vipw"
            },
            {
                "description": "Display version",
                "command": "vipw {{-V|--version}}"
            }
        ],
        "tldr_source": "official",
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-s",
                        "lines": 4,
                        "flag": "-s"
                    }
                ]
            },
            {
                "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": 2,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-R --root",
                        "lines": 3,
                        "flag": "-R",
                        "long": "--root"
                    },
                    {
                        "name": "-s --shadow",
                        "lines": 2,
                        "flag": "-s",
                        "long": "--shadow"
                    }
                ]
            },
            {
                "name": "ENVIRONMENT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}