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: Systemhanteringskommandon
7 .\" Source: Systemhanteringskommandon
10 .TH "USERMOD" "8" "16-02-2011" "Systemhanteringskommandon" "Systemhanteringskommandon"
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 usermod \- \(:andra ett anv\(:andarkonto
33 .HP \w'\fBusermod\fR\ 'u
34 \fBusermod\fR [\fIflaggor\fR] \fIINLOGGNINGSNAMN\fR
39 \(:andrar systemkontofiler enligt det som anges p\(oa kommandoraden\&.
42 Flaggorna som g\(:aller f\(:or kommandot
46 \fB\-a\fR, \fB\-\-append\fR
48 Add the user to the supplementary group(s)\&. Use only with the
53 \fB\-c\fR, \fB\-\-comment\fR\fIKOMMENTAR\fR
55 Det nya v\(:ardet f\(:or anv\(:andarens kommentarsf\(:alt i l\(:osenordsfilen\&. Vanligtvis \(:andras det med verktyget
59 \fB\-d\fR, \fB\-\-home\fR\fIHEM_KAT\fR
61 The user\*(Aqs new login directory\&.
65 option is given, the contents of the current home directory will be moved to the new home directory, which is created if it does not already exist\&.
68 \fB\-e\fR, \fB\-\-expiredate\fR\fIUTG\(oANGSDATUM\fR
70 The date on which the user account will be disabled\&. The date is specified in the format
74 \fB\-f\fR, \fB\-\-inactive\fR\fIINAKTIV\fR
76 The number of days after a password expires until the account is permanently disabled\&.
78 A value of 0 disables the account as soon as the password has expired, and a value of \-1 disables the feature\&.
81 \fB\-g\fR, \fB\-\-gid\fR\fIGRUPP\fR
83 The group name or number of the user\*(Aqs new initial login group\&. The group must exist\&.
86 \fB\-G\fR, \fB\-\-groups\fR\fIGRUPP1\fR[\fI,GRUPP2,\&.\&.\&.\fR[\fI,GRUPPN\fR]]]
88 A list of supplementary groups which the user is also a member of\&. Each group is separated from the next by a comma, with no intervening whitespace\&. The groups are subject to the same restrictions as the group given with the
92 If the user is currently a member of a group which is not listed, the user will be removed from the group\&. This behaviour can be changed via the
94 option, which appends the user to the current supplementary group list\&.
97 \fB\-l\fR, \fB\-\-login\fR\fINYTT_INLOGGNINGSNAMN\fR
99 The name of the user will be changed from
102 \fINEW_LOGIN\fR\&. Nothing else is changed\&. In particular, the user\*(Aqs home directory name should probably be changed manually to reflect the new login name\&.
105 \fB\-L\fR, \fB\-\-lock\fR
107 L\(oas en anv\(:andares l\(:osenord\&. Detta s\(:atter ett "!" i b\(:orjan av det krypterade l\(:osenordet som effektivt inaktiverar l\(:osenordet\&. Du kan inte anv\(:anda denna flagga med
112 Note: if you wish to lock the account (not only access with a password), you should also set the
118 \fB\-m\fR, \fB\-\-move\-home\fR
120 Move the content of the user\*(Aqs home directory to the new location\&.
122 This option is only valid in combination with the
125 \fB\-\-home\fR) option\&.
128 \fB\-o\fR, \fB\-\-non\-unique\fR
132 option, this option allows to change the user ID to a non\-unique value\&.
135 \fB\-p\fR, \fB\-\-password\fR\fIL\(:OSENORD\fR
137 Det krypterade l\(:osenordet, som returneras av
142 This option is not recommended because the password (or encrypted password) will be visible by users listing the processes\&.
144 You should make sure the password respects the system\*(Aqs password policy\&.
147 \fB\-s\fR, \fB\-\-shell\fR\fISKAL\fR
149 The name of the user\*(Aqs new login shell\&. Setting this field to blank causes the system to select the default login shell\&.
152 \fB\-u\fR, \fB\-\-uid\fR\fIUID\fR
154 The new numerical value of the user\*(Aqs ID\&.
156 This value must be unique, unless the
158 option is used\&. The value must be non\-negative\&. Values between 0 and 999 are typically reserved for system accounts\&.
160 The user\*(Aqs mailbox, and any files which the user owns and which are located in the user\*(Aqs home directory will have the file user ID changed automatically\&.
162 The ownership of files outside of the user\*(Aqs home directory must be fixed manually\&.
165 \fB\-U\fR, \fB\-\-unlock\fR
167 L\(oaser upp en anv\(:andares l\(:osenord\&. Detta tar bort det inledande "!" i det krypterade l\(:osenordet\&. Du kan inte anv\(:anda denna flagga med
172 Note: if you wish to unlock the account (not only access with a password), you should also set the
175 \fI99999\fR, or to the
178 /etc/default/useradd)\&.
181 \fB\-Z\fR, \fB\-\-selinux\-user\fR \fISEUSER\fR
183 The SELinux user for the user\*(Aqs login\&. The default is to leave this field the blank, which causes the system to select the default SELinux user\&.
187 You must make certain that the named user is not executing any processes when this command is being executed if the user\*(Aqs numerical user ID, the user\*(Aqs name, or the user\*(Aqs home directory is being changed\&.
189 checks this on Linux, but only check if the user is logged in according to utmp on other architectures\&.
191 You must change the owner of any
197 You must make any changes involving NIS on the NIS server\&.
200 The following configuration variables in
202 change the behavior of this tool:
204 \fBMAIL_DIR\fR (string)
206 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\&.
209 \fBMAIL_FILE\fR (string)
211 Defines the location of the users mail spool files relatively to their home directory\&.
218 variables are used by
222 to create, move, or delete the user\*(Aqs mail spool\&.
225 \fBMAIL_CHECK_ENAB\fR
227 \fIyes\fR, they are also used to define the
229 environment variable\&.
231 \fBMAX_MEMBERS_PER_GROUP\fR (number)
233 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
235 (with the same name, same password, and same GID)\&.
237 The default value is 0, meaning that there are no limits in the number of members in a group\&.
239 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\&.
241 If you need to enforce such limit, you can use 25\&.
243 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\&.
249 Gruppkontoinformation\&.
254 S\(:aker gruppkontoinformation\&.
259 Anv\(:andarkontoinformation\&.
264 S\(:aker anv\(:andarkontoinformation\&.