Upload Tizen:Base source
[framework/base/util-linux-ng.git] / login-utils / vipw.8
1 .\" Copyright (c) 1983, 1991 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     from: @(#)vipw.8        6.7 (Berkeley) 3/16/91
33 .\"
34 .Dd 7 July 1996
35 .Dt VIPW 8
36 .Os Util-Linux 2.6
37 .Sh NAME
38 .Nm vipw, vigr
39 .Nd edit the password or group files
40 .Sh SYNOPSIS
41 .Nm vipw
42 .Op Fl V
43 .Op Fl -version
44 .Nm vigr
45 .Op Fl V
46 .Op Fl -version
47 .Sh DESCRIPTION
48 .Nm Vipw
49 edits the password file after setting the appropriate locks,
50 and does any necessary processing after the password file is unlocked.
51 If the password file is already locked for editing by another user,
52 .Nm vipw
53 will ask you
54 to try again later. The default editor for
55 .Nm vipw
56 is
57 .Xr vi 1 .
58 .br
59 .Nm Vigr
60 edits the group file in the same manner as vipw.
61 .Sh ENVIRONMENT
62 If the following environment variable exists it will be utilized by
63 .Nm vipw :
64 .Bl -tag -width EDITOR
65 .It Ev EDITOR
66 The editor specified by the string
67 .Ev EDITOR
68 will be invoked instead of the default editor
69 .Xr vi 1 .
70 .El
71 .Sh SEE ALSO
72 .Xr passwd 1 ,
73 .Xr vi 1 ,
74 .Xr passwd 5
75 .Sh HISTORY
76 The
77 .Nm vipw
78 command appeared in
79 .Bx 4.0 .
80 .br
81 The
82 .Nm vigr
83 command appeared in Util-Linux 2.6.
84 .Sh AVAILABILITY
85 The vigr and vipw commands are part of the util-linux-ng package and are available from
86 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.