1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- $Id: vipw.8.xml,v 1.18 2006/05/20 12:11:38 kloczek Exp $ -->
5 <refentrytitle>vipw</refentrytitle>
6 <manvolnum>8</manvolnum>
7 <refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
10 <refname>vipw</refname>
11 <refname>vigr</refname>
13 edit the password, group, shadow-password or shadow-group file
17 <refsynopsisdiv id='synopsis'>
19 <command>vipw</command><arg choice='opt'>options</arg>
22 <command>vigr</command><arg choice='opt'>options</arg>
26 <refsect1 id='description'>
27 <title>DESCRIPTION</title>
29 <command>vipw</command> and <command>vigr</command> will edit the
30 files <filename>/etc/passwd</filename> and
31 <filename>/etc/group</filename>, respectively. With the
32 <option>-s</option> flag, they will edit the shadow versions of those
33 files, <filename>/etc/shadow</filename> and
34 <filename>/etc/gshadow</filename>, respectively. The programs will set
35 the appropriate locks to prevent file corruption. When looking for an
36 editor, the programs will first try the environment variable
37 <envar>$VISUAL</envar>, then the environment variable
38 <envar>$EDITOR</envar>, and finally the default editor,
39 <citerefentry><refentrytitle>vi</refentrytitle>
40 <manvolnum>1</manvolnum></citerefentry>.
44 <refsect1 id='options'>
45 <title>OPTIONS</title>
47 The options which apply to the <command>vipw</command> and
48 <command>vigr</command> commands are:
50 <variablelist remap='IP'>
52 <term><option>-g</option>, <option>--group</option></term>
54 <para>Edit group database.</para>
58 <term><option>-h</option>, <option>--help</option></term>
60 <para>Display help message and exit.</para>
64 <term><option>-p</option>, <option>--passwd</option></term>
66 <para>Edit passwd database.</para>
70 <term><option>-q</option>, <option>--quiet</option></term>
72 <para>Quiet mode.</para>
76 <term><option>-s</option>, <option>--shadow</option></term>
78 <para>Edit shadow or gshadow database.</para>
88 <term><filename>/etc/group</filename></term>
90 <para>Group account information.</para>
94 <term><filename>/etc/gshadow</filename></term>
96 <para>Secure group account information.</para>
100 <term><filename>/etc/passwd</filename></term>
102 <para>User account information.</para>
106 <term><filename>/etc/shadow</filename></term>
108 <para>Secure user account information.</para>
113 <refsect1 id='see_also'>
114 <title>SEE ALSO</title>
117 <refentrytitle>vi</refentrytitle><manvolnum>1</manvolnum>
120 <refentrytitle>group</refentrytitle><manvolnum>5</manvolnum>
123 <refentrytitle>gshadow</refentrytitle><manvolnum>5</manvolnum>
126 <refentrytitle>passwd</refentrytitle><manvolnum>5</manvolnum>
129 <refentrytitle>shadow</refentrytitle><manvolnum>5</manvolnum>