3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: System Management Commands
7 .\" Source: System Management Commands
10 .TH "USERDEL" "8" "16/02/2011" "System Management Commands" "System Management Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 userdel \- Rimuove l\*(Aqaccount di un utente ed i file relativi
33 .HP \w'\fBuserdel\fR\ 'u
34 \fBuserdel\fR [opzioni] \fILOGIN\fR
39 command modifies the system account files, deleting all entries that refer to the user name
40 \fILOGIN\fR\&. The named user must exist\&.
45 accetta le seguenti opzioni:
47 \fB\-f\fR, \fB\-\-force\fR
49 This option forces the removal of the user account, even if the user is still logged in\&. It also forces
51 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
57 and if a group exists with the same name as the deleted user, then this group will be removed, even if it is still the primary group of another user\&.
61 This option is dangerous and may leave your system in an inconsistent state\&.
64 \fB\-h\fR, \fB\-\-help\fR
66 Mostra un messaggio di aiuto ed esce\&.
69 \fB\-r\fR, \fB\-\-remove\fR
71 I file nella home directory dell\*(Aqutente verranno rimossi insieme alla home directory stessa\&. I file collocati in altri file system dovranno essere ricercati e rimossi manualmente\&.
73 The mail spool is defined by the
81 The following configuration variables in
83 change the behavior of this tool:
85 \fBMAIL_DIR\fR (string)
87 The mail spool directory\&. This is needed to manipulate the mailbox when its corresponding user account is modified or deleted\&. If not specified, a compile\-time default is used\&.
90 \fBMAIL_FILE\fR (string)
92 Defines the location of the users mail spool files relatively to their home directory\&.
103 to create, move, or delete the user\*(Aqs mail spool\&.
106 \fBMAIL_CHECK_ENAB\fR
108 \fIyes\fR, they are also used to define the
110 environment variable\&.
112 \fBMAX_MEMBERS_PER_GROUP\fR (number)
114 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
116 (with the same name, same password, and same GID)\&.
118 The default value is 0, meaning that there are no limits in the number of members in a group\&.
120 This feature (split group) permits to limit the length of lines in the group file\&. This is useful to make sure that lines for NIS groups are not larger than 1024 characters\&.
122 If you need to enforce such limit, you can use 25\&.
124 Note: split groups may not be supported by all tools (even in the Shadow toolsuite)\&. You should not use this variable unless you really need it\&.
127 \fBUSERDEL_CMD\fR (string)
129 If defined, this command is run when removing a user\&. It should remove any at/cron/print jobs etc\&. owned by the user to be removed (passed as the first argument)\&.
131 The return code of the script is not taken into account\&.
133 Here is an example script, which removes the user\*(Aqs cron, at and print jobs:
141 # Check for the required argument\&.
143 echo "Usage: $0 username"
147 # Remove cron jobs\&.
151 # Note that it will remove any jobs owned by the same UID,
152 # even if it was shared by a different username\&.
153 AT_SPOOL_DIR=/var/spool/cron/atjobs
154 find $AT_SPOOL_DIR \-name "[^\&.]*" \-type f \-user $1 \-delete \e;
156 # Remove print jobs\&.
169 \fBUSERGROUPS_ENAB\fR (boolean)
171 Enable setting of the umask group bits to be the same as owner bits (examples: 022 \-> 002, 077 \-> 007) for non\-root users, if the uid is the same as gid, and username is the same as the primary group name\&.
176 will remove the user\*(Aqs group if it contains no more members, and
178 will create by default a group with the name of the user\&.
184 Informazioni sugli account di gruppo\&.
189 Shadow password suite configuration\&.
194 informazioni sugli account utente\&.
199 Informazioni sicure sugli account di utenti\&.
201 .SH "VALORI RESTITUITI"
205 command exits with the following values:
214 can\*(Aqt update password file
219 sintassi del comando errata
224 il gruppo specificato non esiste
229 user currently logged in
234 non \(`e possibile aggiornare il file group
239 can\*(Aqt remove home directory
245 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
247 option can force the deletion of this account\&.
249 You should manually check all file systems to ensure that no files remain owned by this user\&.
251 Non \(`e possibile rimuovere nessun attributo NIS su un client NIS\&. Questo deve essere fatto sul server NIS\&.
254 \fBUSERGROUPS_ENAB\fR
260 will delete the group with the same name as the user\&. To avoid inconsistencies in the passwd and group databases,
262 will check that this group is not used as a primary group for another user, and will just warn without deleting the group otherwise\&. The
264 option can force the deletion of this group\&.