Deleted Added
full compact
pw.8 (39454) pw.8 (44229)
1.\" Copyright (C) 1996
2.\" David L. Nugent. 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.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (C) 1996
2.\" David L. Nugent. 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.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $Id: pw.8,v 1.14 1998/08/31 04:49:04 jkoshy Exp $
25.\" $Id: pw.8,v 1.15 1998/09/18 04:45:43 jkoshy Exp $
26.\"
27.Dd December 9, 1996
28.Dt PW 8
29.Os
30.Sh NAME
31.Nm pw
32.Nd create, remove, modify & display system users and groups
33.Sh SYNOPSIS
34.Nm pw
26.\"
27.Dd December 9, 1996
28.Dt PW 8
29.Os
30.Sh NAME
31.Nm pw
32.Nd create, remove, modify & display system users and groups
33.Sh SYNOPSIS
34.Nm pw
35.Op Fl V Ar etcdir
35.Ar useradd
36.Op name|uid
37.Op Fl C Ar config
38.Op Fl q
39.Op Fl n Ar name
40.Op Fl u Ar uid
41.Op Fl c Ar comment
42.Op Fl d Ar dir

--- 6 unchanged lines hidden (view full) ---

49.Op Fl s Ar shell
50.Op Fl o
51.Op Fl L Ar class
52.Op Fl h Ar fd
53.Op Fl N
54.Op Fl P
55.Op Fl Y
56.Nm pw
36.Ar useradd
37.Op name|uid
38.Op Fl C Ar config
39.Op Fl q
40.Op Fl n Ar name
41.Op Fl u Ar uid
42.Op Fl c Ar comment
43.Op Fl d Ar dir

--- 6 unchanged lines hidden (view full) ---

50.Op Fl s Ar shell
51.Op Fl o
52.Op Fl L Ar class
53.Op Fl h Ar fd
54.Op Fl N
55.Op Fl P
56.Op Fl Y
57.Nm pw
58.Op Fl V Ar etcdir
57.Ar useradd
58.Op name|uid
59.Fl D
60.Op Fl C Ar config
61.Op Fl q
62.Op Fl b Ar dir
63.Op Fl e Ar days
64.Op Fl p Ar days
65.Op Fl g Ar group
66.Op Fl G Ar grouplist
67.Op Fl k Ar dir
68.Op Fl u Ar min,max
69.Op Fl i Ar min,max
70.Op Fl w Ar method
71.Op Fl s Ar shell
72.Op Fl y Ar path
73.Nm pw
59.Ar useradd
60.Op name|uid
61.Fl D
62.Op Fl C Ar config
63.Op Fl q
64.Op Fl b Ar dir
65.Op Fl e Ar days
66.Op Fl p Ar days
67.Op Fl g Ar group
68.Op Fl G Ar grouplist
69.Op Fl k Ar dir
70.Op Fl u Ar min,max
71.Op Fl i Ar min,max
72.Op Fl w Ar method
73.Op Fl s Ar shell
74.Op Fl y Ar path
75.Nm pw
76.Op Fl V Ar etcdir
74.Ar userdel
75.Op name|uid
76.Op Fl n Ar name
77.Op Fl u Ar uid
78.Op Fl r
79.Op Fl Y
80.Nm pw
77.Ar userdel
78.Op name|uid
79.Op Fl n Ar name
80.Op Fl u Ar uid
81.Op Fl r
82.Op Fl Y
83.Nm pw
84.Op Fl V Ar etcdir
81.Ar usermod
82.Op name|uid
83.Op Fl C Ar config
84.Op Fl q
85.Op Fl n Ar name
86.Op Fl u Ar uid
87.Op Fl c Ar comment
88.Op Fl d Ar dir

--- 7 unchanged lines hidden (view full) ---

96.Op Fl w Ar method
97.Op Fl s Ar shell
98.Op Fl L Ar class
99.Op Fl h Ar fd
100.Op Fl N
101.Op Fl P
102.Op Fl Y
103.Nm pw
85.Ar usermod
86.Op name|uid
87.Op Fl C Ar config
88.Op Fl q
89.Op Fl n Ar name
90.Op Fl u Ar uid
91.Op Fl c Ar comment
92.Op Fl d Ar dir

--- 7 unchanged lines hidden (view full) ---

100.Op Fl w Ar method
101.Op Fl s Ar shell
102.Op Fl L Ar class
103.Op Fl h Ar fd
104.Op Fl N
105.Op Fl P
106.Op Fl Y
107.Nm pw
108.Op Fl V Ar etcdir
104.Ar usershow
105.Op name|uid
106.Op Fl n Ar name
107.Op Fl u Ar uid
108.Op Fl F
109.Op Fl P
110.Op Fl a
111.Nm pw
109.Ar usershow
110.Op name|uid
111.Op Fl n Ar name
112.Op Fl u Ar uid
113.Op Fl F
114.Op Fl P
115.Op Fl a
116.Nm pw
117.Op Fl V Ar etcdir
112.Ar usernext
113.Op Fl C Ar config
114.Op Fl q
115.Nm pw
118.Ar usernext
119.Op Fl C Ar config
120.Op Fl q
121.Nm pw
122.Op Fl V Ar etcdir
116.Ar groupadd
117.Op group|gid
118.Op Fl C Ar config
119.Op Fl q
120.Op Fl n Ar group
121.Op Fl g Ar gid
122.Op Fl M Ar members
123.Op Fl o
124.Op Fl h Ar fd
125.Op Fl N
126.Op Fl P
127.Op Fl Y
128.Nm pw
123.Ar groupadd
124.Op group|gid
125.Op Fl C Ar config
126.Op Fl q
127.Op Fl n Ar group
128.Op Fl g Ar gid
129.Op Fl M Ar members
130.Op Fl o
131.Op Fl h Ar fd
132.Op Fl N
133.Op Fl P
134.Op Fl Y
135.Nm pw
136.Op Fl V Ar etcdir
129.Ar groupdel
130.Op group|gid
131.Op Fl n Ar name
132.Op Fl g Ar gid
133.Op Fl Y
134.Nm pw
137.Ar groupdel
138.Op group|gid
139.Op Fl n Ar name
140.Op Fl g Ar gid
141.Op Fl Y
142.Nm pw
143.Op Fl V Ar etcdir
135.Ar groupmod
136.Op group|gid
137.Op Fl C Ar config
138.Op Fl q
139.Op Fl F
140.Op Fl n Ar name
141.Op Fl g Ar gid
142.Op Fl l Ar name
143.Op Fl M Ar members
144.Op Fl m Ar newmembers
145.Op Fl h Ar fd
146.Op Fl N
147.Op Fl P
148.Op Fl Y
149.Nm pw
144.Ar groupmod
145.Op group|gid
146.Op Fl C Ar config
147.Op Fl q
148.Op Fl F
149.Op Fl n Ar name
150.Op Fl g Ar gid
151.Op Fl l Ar name
152.Op Fl M Ar members
153.Op Fl m Ar newmembers
154.Op Fl h Ar fd
155.Op Fl N
156.Op Fl P
157.Op Fl Y
158.Nm pw
159.Op Fl V Ar etcdir
150.Ar groupshow
151.Op group|gid
152.Op Fl n Ar name
153.Op Fl g Ar gid
154.Op Fl F
155.Op Fl P
156.Op Fl a
157.Nm pw
160.Ar groupshow
161.Op group|gid
162.Op Fl n Ar name
163.Op Fl g Ar gid
164.Op Fl F
165.Op Fl P
166.Op Fl a
167.Nm pw
168.Op Fl V Ar etcdir
158.Ar groupnext
159.Op Fl C Ar config
160.Op Fl q
161.Sh DESCRIPTION
162.Nm Pw
163is a command-line based editor for the system
164.Ar user
165and

--- 37 unchanged lines hidden (view full) ---

203for user and group database manipulation.
204Following these keywords, you may optionally specify the user or group name or numeric
205id as an alternative to using the
206.Fl n Ar name ,
207.Fl u Ar uid ,
208.Fl g Ar gid
209options.
210.Pp
169.Ar groupnext
170.Op Fl C Ar config
171.Op Fl q
172.Sh DESCRIPTION
173.Nm Pw
174is a command-line based editor for the system
175.Ar user
176and

--- 37 unchanged lines hidden (view full) ---

214for user and group database manipulation.
215Following these keywords, you may optionally specify the user or group name or numeric
216id as an alternative to using the
217.Fl n Ar name ,
218.Fl u Ar uid ,
219.Fl g Ar gid
220options.
221.Pp
211The following flags are common to most modes of operation;
222The following flags are common to most or all modes of operation;
212.Pp
213.Bl -tag -width "-G grouplist"
223.Pp
224.Bl -tag -width "-G grouplist"
225.It Fl V Ar etcdir
226This flag sets an alternate location for the password, group and configuration files,
227and may be used to maintain a user/group database in an alternate location.
228If this switch is specified, the system
229.Pa /etc/pw.conf
230will not be sourced for default configuration data, but the file pw.conf in the
231specified directory will be used instead (or none, if it does not exist).
232The
233.Fl C
234flag may be used to override this behaviour.
235As an exception to the general rule where options must follow the operation
236type, the
237.Fl V
238flag may be used on the command line before the operation keyword.
214.It Fl C Ar config
215By default,
216.Nm
217reads the file
218.Pa /etc/pw.conf
219to obtain policy information on how new user accounts and groups are to be created.
220The
221.Fl C

--- 641 unchanged lines hidden ---
239.It Fl C Ar config
240By default,
241.Nm
242reads the file
243.Pa /etc/pw.conf
244to obtain policy information on how new user accounts and groups are to be created.
245The
246.Fl C

--- 641 unchanged lines hidden ---