pw.8 (20679) | pw.8 (21330) |
---|---|
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.4 1996/12/11 00:07:19 joerg Exp $ | 25.\" $Id: pw.8,v 1.5 1996/12/19 15:22:41 davidn 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 --- 13 unchanged lines hidden (view full) --- 47.Op Fl m 48.Op Fl k Ar dir 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 | 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 --- 13 unchanged lines hidden (view full) --- 47.Op Fl m 48.Op Fl k Ar dir 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 |
|
55.Nm pw 56.Ar useradd 57.Op name|uid | 56.Nm pw 57.Ar useradd 58.Op name|uid |
58.Op Fl D | 59.Fl D |
59.Op Fl C Ar config 60.Op Fl q 61.Op Fl b Ar dir 62.Op Fl e Ar days 63.Op Fl p Ar days 64.Op Fl g Ar group 65.Op Fl G Ar grouplist 66.Op Fl k Ar dir 67.Op Fl u Ar min,max 68.Op Fl i Ar min,max 69.Op Fl w Ar method 70.Op Fl s Ar shell | 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 |
|
71.Nm pw 72.Ar userdel 73.Op name|uid 74.Op Fl n Ar name 75.Op Fl u Ar uid 76.Op Fl r | 73.Nm pw 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 |
|
77.Nm pw 78.Ar usermod 79.Op name|uid 80.Op Fl C Ar config 81.Op Fl q 82.Op Fl n Ar name 83.Op Fl u Ar uid 84.Op Fl c Ar comment --- 6 unchanged lines hidden (view full) --- 91.Op Fl m 92.Op Fl k Ar dir 93.Op Fl w Ar method 94.Op Fl s Ar shell 95.Op Fl L Ar class 96.Op Fl h Ar fd 97.Op Fl N 98.Op Fl P | 80.Nm pw 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 --- 6 unchanged lines hidden (view full) --- 94.Op Fl m 95.Op Fl k Ar dir 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 |
|
99.Nm pw 100.Ar usershow 101.Op name|uid 102.Op Fl n Ar name 103.Op Fl u Ar uid 104.Op Fl F 105.Op Fl P 106.Op Fl a --- 8 unchanged lines hidden (view full) --- 115.Op Fl q 116.Op Fl n Ar group 117.Op Fl g Ar gid 118.Op Fl M Ar members 119.Op Fl o 120.Op Fl h Ar fd 121.Op Fl N 122.Op Fl P | 103.Nm pw 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 --- 8 unchanged lines hidden (view full) --- 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 |
|
123.Nm pw 124.Ar groupdel 125.Op Fl n Ar name 126.Op Fl g Ar gid | 128.Nm pw 129.Ar groupdel 130.Op Fl n Ar name 131.Op Fl g Ar gid |
132.Op Fl Y |
|
127.Nm pw 128.Ar groupmod 129.Op Fl C Ar config 130.Op Fl q 131.Op Fl F 132.Op Fl n Ar name 133.Op Fl g Ar gid 134.Op Fl l Ar name 135.Op Fl M Ar members 136.Op Fl m Ar newmembers 137.Op Fl h Ar fd 138.Op Fl N 139.Op Fl P | 133.Nm pw 134.Ar groupmod 135.Op Fl C Ar config 136.Op Fl q 137.Op Fl F 138.Op Fl n Ar name 139.Op Fl g Ar gid 140.Op Fl l Ar name 141.Op Fl M Ar members 142.Op Fl m Ar newmembers 143.Op Fl h Ar fd 144.Op Fl N 145.Op Fl P |
146.Op Fl Y |
|
140.Nm pw 141.Ar groupshow 142.Op Fl n Ar name 143.Op Fl g Ar gid 144.Op Fl F 145.Op Fl P 146.Op Fl a 147.Nm pw --- 41 unchanged lines hidden (view full) --- 189for the actual user and group database manipulation. 190Following these keywords, you may optionally specify the user or group name or numeric 191id as an alternative to using the 192.Fl n Ar name , 193.Fl u Ar uid , 194.Fl g Ar gid 195options. 196.Pp | 147.Nm pw 148.Ar groupshow 149.Op Fl n Ar name 150.Op Fl g Ar gid 151.Op Fl F 152.Op Fl P 153.Op Fl a 154.Nm pw --- 41 unchanged lines hidden (view full) --- 196for the actual user and group database manipulation. 197Following these keywords, you may optionally specify the user or group name or numeric 198id as an alternative to using the 199.Fl n Ar name , 200.Fl u Ar uid , 201.Fl g Ar gid 202options. 203.Pp |
197The following flags are common to all modes of operation: | 204The following flags are common to all or most modes of operation: |
198.Pp 199.Bl -tag -width "-G grouplist" 200.It Fl C Ar config 201By default, 202.Nm pw 203reads the file 204.Pa /etc/pw.conf 205to obtain policy information on how new user accounts and groups are to be created, --- 13 unchanged lines hidden (view full) --- 219.It Fl N 220This option is available in add and modify operations, and causes 221.Nm pw 222to skip updating the user/group databases and instead print the result 223of the operation without actually performing it. 224You may use the 225.Fl P 226option to switch between standard passwd and readable formats. | 205.Pp 206.Bl -tag -width "-G grouplist" 207.It Fl C Ar config 208By default, 209.Nm pw 210reads the file 211.Pa /etc/pw.conf 212to obtain policy information on how new user accounts and groups are to be created, --- 13 unchanged lines hidden (view full) --- 226.It Fl N 227This option is available in add and modify operations, and causes 228.Nm pw 229to skip updating the user/group databases and instead print the result 230of the operation without actually performing it. 231You may use the 232.Fl P 233option to switch between standard passwd and readable formats. |
234.It Fl Y 235Using this option with any of the update modes causes 236.Nm pw 237to run 238.Xr make 1 239after changing to the directory 240.Pa /var/yp . 241This is intended to allow automatic updating of the NIS database files. 242If separate passwd and group files are being used by NIS, then use the 243.Fl y Ar path 244option to specify the location of the NIS passwd database so that pw 245will automatically update it concurrently with the system password 246databases. |
|
227.El 228.Pp 229.Sh USER OPTIONS 230The following options apply to the 231.Ar useradd , 232and 233.Ar usermod , 234commands: --- 318 unchanged lines hidden (view full) --- 553generates a password and prints it to stdout, which is suitable where you issue 554users with passwords to access their accounts rather than having the user nominate 555their own (possibly poorly chosen) password. 556The 557.Ql \&no 558method requires that the superuser use 559.Xr passwd 1 560to render the account accessible with a password. | 247.El 248.Pp 249.Sh USER OPTIONS 250The following options apply to the 251.Ar useradd , 252and 253.Ar usermod , 254commands: --- 318 unchanged lines hidden (view full) --- 573generates a password and prints it to stdout, which is suitable where you issue 574users with passwords to access their accounts rather than having the user nominate 575their own (possibly poorly chosen) password. 576The 577.Ql \&no 578method requires that the superuser use 579.Xr passwd 1 580to render the account accessible with a password. |
581.It Fl y Ar path 582This sets the pathname of the database used by NIS if you are not sharing 583the information from 584.Pa /etc/master.passwd 585directly with NIS. 586You should only set this option on NIS servers. |
|
561.El 562.Pp 563The 564.Ar userdel 565command has only three valid options. The 566.Ql Fl n Ar name 567and 568.Ql Fl u Ar uid --- 251 unchanged lines hidden --- | 587.El 588.Pp 589The 590.Ar userdel 591command has only three valid options. The 592.Ql Fl n Ar name 593and 594.Ql Fl u Ar uid --- 251 unchanged lines hidden --- |