Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / vipw.8.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (c) 1997       , Marek Michałkiewicz
4    Copyright (c) 2001 - 2006, Tomasz Kłoczko
5    Copyright (c) 2007 - 2009, Nicolas François
6    All rights reserved.
7   
8    Redistribution and use in source and binary forms, with or without
9    modification, are permitted provided that the following conditions
10    are met:
11    1. Redistributions of source code must retain the above copyright
12       notice, this list of conditions and the following disclaimer.
13    2. Redistributions in binary form must reproduce the above copyright
14       notice, this list of conditions and the following disclaimer in the
15       documentation and/or other materials provided with the distribution.
16    3. The name of the copyright holders or contributors may not be used to
17       endorse or promote products derived from this software without
18       specific prior written permission.
19   
20    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
23    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT
24    HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 -->
32 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
33   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
34 ]>
35 <refentry id='vipw.8'>
36   <!--  $Id: vipw.8.xml 2511 2009-03-14 11:08:39Z nekral-guest $  -->
37   <refmeta>
38     <refentrytitle>vipw</refentrytitle>
39     <manvolnum>8</manvolnum>
40     <refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
41   </refmeta>
42   <refnamediv id='name'>
43     <refname>vipw</refname>
44     <refname>vigr</refname>
45     <refpurpose>
46       edit the password, group, shadow-password or shadow-group file
47     </refpurpose>
48   </refnamediv>
49
50   <refsynopsisdiv id='synopsis'>
51     <cmdsynopsis>
52       <command>vipw</command>
53       <arg choice='opt'>
54         <replaceable>options</replaceable>                                                                                           
55       </arg>
56     </cmdsynopsis>
57     <cmdsynopsis>
58       <command>vigr</command>
59       <arg choice='opt'>
60         <replaceable>options</replaceable>                                                                                           
61       </arg>
62     </cmdsynopsis>
63   </refsynopsisdiv>
64
65   <refsect1 id='description'>
66     <title>DESCRIPTION</title>
67     <para>
68       The <command>vipw</command> and <command>vigr</command> commands edits
69       the files <filename>/etc/passwd</filename> and
70       <filename>/etc/group</filename>, respectively. With the
71       <option>-s</option> flag, they will edit the shadow versions of those
72       files, <filename>/etc/shadow</filename> and
73       <filename>/etc/gshadow</filename>, respectively. The programs will set
74       the appropriate locks to prevent file corruption. When looking for an
75       editor, the programs will first try the environment variable
76       <envar>$VISUAL</envar>, then the environment variable
77       <envar>$EDITOR</envar>, and finally the default editor,
78       <citerefentry><refentrytitle>vi</refentrytitle>
79       <manvolnum>1</manvolnum></citerefentry>.
80     </para>
81   </refsect1>
82
83   <refsect1 id='options'>
84     <title>OPTIONS</title>
85     <para>
86       The options which apply to the <command>vipw</command> and
87       <command>vigr</command> commands are:
88     </para>
89     <variablelist remap='IP'>
90       <varlistentry>
91         <term><option>-g</option>, <option>--group</option></term>
92         <listitem>
93           <para>Edit group database.</para>
94         </listitem>
95       </varlistentry>
96       <varlistentry>
97         <term><option>-h</option>, <option>--help</option></term>
98         <listitem>
99           <para>Display help message and exit.</para>
100         </listitem>
101       </varlistentry>
102       <varlistentry>
103         <term><option>-p</option>, <option>--passwd</option></term>
104         <listitem>
105           <para>Edit passwd database.</para>
106         </listitem>
107       </varlistentry>
108       <varlistentry>
109         <term><option>-q</option>, <option>--quiet</option></term>
110         <listitem>
111           <para>Quiet mode.</para>
112         </listitem>
113       </varlistentry>
114       <varlistentry>
115         <term><option>-s</option>, <option>--shadow</option></term>
116         <listitem>
117           <para>Edit shadow or gshadow database.</para>
118         </listitem>
119       </varlistentry>
120     </variablelist>
121   </refsect1>
122
123   <refsect1 id='files'>
124     <title>FILES</title>
125     <variablelist>
126       <varlistentry>
127         <term><filename>/etc/group</filename></term>
128         <listitem>
129           <para>Group account information.</para>
130         </listitem>
131       </varlistentry>
132       <varlistentry>
133         <term><filename>/etc/gshadow</filename></term>
134         <listitem>
135           <para>Secure group account information.</para>
136         </listitem>
137       </varlistentry>
138       <varlistentry>
139         <term><filename>/etc/passwd</filename></term>
140         <listitem>
141           <para>User account information.</para>
142         </listitem>
143       </varlistentry>
144       <varlistentry>
145         <term><filename>/etc/shadow</filename></term>
146         <listitem>
147           <para>Secure user account information.</para>
148         </listitem>
149       </varlistentry>
150     </variablelist>
151   </refsect1>
152
153   <refsect1 id='see_also'>
154     <title>SEE ALSO</title>
155     <para>
156       <citerefentry>
157         <refentrytitle>vi</refentrytitle><manvolnum>1</manvolnum>
158       </citerefentry>,
159       <citerefentry>
160         <refentrytitle>group</refentrytitle><manvolnum>5</manvolnum>
161       </citerefentry>,
162       <citerefentry>
163         <refentrytitle>gshadow</refentrytitle><manvolnum>5</manvolnum>
164       </citerefentry>
165       <citerefentry>
166         <refentrytitle>passwd</refentrytitle><manvolnum>5</manvolnum>
167       </citerefentry>,
168       <citerefentry>
169         <refentrytitle>shadow</refentrytitle><manvolnum>5</manvolnum>
170       </citerefentry>.
171     </para>
172   </refsect1>
173 </refentry>