1 .\" $NetBSD: userdel.8,v 1.31 2005/11/25 08:00:18 agc Exp $ */
3 .\" Copyright (c) 1999 Alistair G. Crooks. All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. The name of the author may not be used to endorse or promote
14 .\" products derived from this software without specific prior written
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
18 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
21 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 .Nd remove a user from the system
39 .Op Fl p Ar preserve-value
42 .Op Fl p Ar preserve-value
47 utility removes a user from the system, optionally
48 removing that user's home directory and any subdirectories.
50 Default values are taken from the information provided in the
51 .Pa /etc/usermgmt.conf
52 file, which, if running as root, is created using the built-in
53 defaults if it does not exist.
55 The first form of the command shown above (using the
57 option) sets and displays the defaults for the
63 for more information about
67 Without any further options,
69 will show the current defaults which will be used by the
72 Together with one of the options shown for the first version
75 will set the default to be the new value.
76 This option is included if built with
78 .It Fl p Ar preserve-value
79 Set the preservation value.
80 If this value is one of
83 or a non-zero number, then the user login information will be
85 This option is included if built with
89 In the second form of the command,
90 after setting any defaults, and then reading values from
91 .Pa /etc/usermgmt.conf ,
92 the following command line options are processed:
94 .It Fl p Ar preserve-value
95 Preserve the user information in the password file,
96 but do not allow the user to login, by switching the
99 one, and by setting the user's shell to the
102 This option can be helpful in preserving a user's
103 files for later use by members of that person's
104 group after the user has moved on.
105 This value can also be set in the
106 .Pa /etc/usermgmt.conf
110 If the field has any of the values
113 or a non-zero number, then user information preservation will take
115 This option is included if built with
118 Remove the user's home directory, any subdirectories,
119 and any files and other entries in them.
121 Allow a samba user name (with a trailing dollar sign)
123 This option is included if built with
126 Perform any actions in a verbose manner.
127 This option is included if built with
131 Once the information has been verified,
135 to update the user database.
136 This is run in the background, and,
137 at very large sites could take several minutes.
139 is completed, the password file is unavailable for other updates
140 and the new information is not available to programs.
144 .Bl -tag -width /etc/usermgmt.conf -compact
145 .It Pa /etc/usermgmt.conf
149 .Xr usermgmt.conf 5 ,
158 utility first appeared in
162 package by the same author.
166 utility was written by
167 .An Alistair G. Crooks