This option forces the removal of the user account, even if the user is still logged in\&. It also forces
41
41
\fBuserdel\fR
42
to remove the user\'s home directory and mail spool, even if another user uses the same home directory or if the mail spool is not owned by the specified user\&. If
42
to remove the user\*(Aqs home directory and mail spool, even if another user uses the same home directory or if the mail spool is not owned by the specified user\&. If
43
43
\fBUSERGROUPS_ENAB\fR
44
44
is defined to
45
45
\fIyes\fR
58
58
.PP
59
59
\fB\-r\fR, \fB\-\-remove\fR
60
60
.RS 4
61
Files in the user\'s home directory will be removed along with the home directory itself and the user\'s mail spool\&. Files located in other file systems will have to be searched for and deleted manually\&.
61
Files in the user\*(Aqs home directory will be removed along with the home directory itself and the user\*(Aqs mail spool\&. Files located in other file systems will have to be searched for and deleted manually\&.
62
62
.sp
63
63
The mail spool is defined by the
64
64
\fBMAIL_DIR\fR
90
90
\fBuseradd\fR,
91
91
\fBusermod\fR, and
92
92
\fBuserdel\fR
93
to create, move, or delete the user\'s mail spool\&.
93
to create, move, or delete the user\*(Aqs mail spool\&.
94
94
.PP
95
95
If
96
96
\fBMAIL_CHECK_ENAB\fR
120
120
.sp
121
121
The return code of the script is not taken into account\&.
122
122
.sp
123
Here is an example script, which removes the user\'s cron, at and print jobs:
123
Here is an example script, which removes the user\*(Aqs cron, at and print jobs:
124
124
.sp
125
125
.if n \{\
126
126
.RS 4
163
163
If set to
164
164
\fIyes\fR,
165
165
\fBuserdel\fR
166
will remove the user\'s group if it contains no more members, and
166
will remove the user\*(Aqs group if it contains no more members, and
167
167
\fBuseradd\fR
168
168
will create by default a group with the name of the user\&.
169
169
.RE
232
232
.PP
233
233
234
234
\fBuserdel\fR
235
will not allow you to remove an account if there are running processes which belong to this account\&. In that case, you may have to kill those processes or lock the user\'s password or account and remove the account later\&. The
235
will not allow you to remove an account if there are running processes which belong to this account\&. In that case, you may have to kill those processes or lock the user\*(Aqs password or account and remove the account later\&. The