1lusermod(1)                 General Commands Manual                lusermod(1)
2
3
4

NAME

6       lusermod - Modify an user
7
8

SYNOPSIS

10       lusermod [OPTION]... user
11
12

DESCRIPTION

14       Modifies the user with name user.
15
16

OPTIONS

18       -c, --gecos=gecos
19              Set  user's GECOS field to gecos.  The GECOS field is tradition‐
20              ally used to store user's real name and other information.
21
22
23       -d, --directory=directory
24              Set user's home directory to directory.
25
26
27       -g, --gid=gid
28              Change user's primary group ID to gid.  If  group  with  ID  gid
29              does  not exist, a warning is printed, but the operation is per‐
30              formed anyway.
31
32
33       -i, --interactive
34              Ask all questions when connecting to the user database, even  if
35              default answers are set up in libuser configuration.
36
37
38       -L, --lock
39              Lock  user's  account.   This  prevents  logging in using user's
40              password.
41
42
43       -l, --login=name
44              Rename user to name.
45
46
47       -m, --movedirectory
48              After changing user's home directory (using the -d option), move
49              the old home directory to the new location.
50
51
52       -P, --plainpassword=password
53              Set  user's password to password.  Note that the password can be
54              viewed while running lusermod using tools such as ps(1).
55
56
57       -p, --password=encrypted
58              Set user's password to the  password  represented  by  the  hash
59              encrypted.   Note  that  the  hash  can  be viewed while running
60              lusermod using tools such as ps(1).
61
62
63       -s, --shell=shell
64              Set user's login shell to shell.
65
66
67       -U, --unlock
68              Unlock user's account.
69
70
71       -u, --uid=uid
72              Change user's user ID to uid.
73
74
75       --commonname=name
76              Set user's common name to name.  This  attribute  is  only  sup‐
77              ported  in  some  backends  (e.g.LDAP), and its support may have
78              further limitations (e.g. LDAP schema rules).
79
80
81       --givenname=name
82              Set user's given name to name.  This attribute is only supported
83              in  some  backends  (e.g.LDAP), and its support may have further
84              limitations (e.g. LDAP schema rules).
85
86
87       --homephone=phone
88              Set user's home telephone number to phone.   This  attribute  is
89              only  supported in some backends (e.g.LDAP), and its support may
90              have further limitations (e.g. LDAP schema rules).
91
92
93       --roomnumber=room
94              Set user's room number to room.  This  attribute  is  only  sup‐
95              ported  in  some  backends  (e.g.LDAP), and its support may have
96              further limitations (e.g. LDAP schema rules).
97
98
99       --surname=name
100              Set user's surname to name.  This attribute is only supported in
101              some backends (e.g.LDAP), and its support may have further limi‐
102              tations (e.g. LDAP schema rules).
103
104
105       --telephonenumber=phone
106              Set user's telephone number to phone.  This  attribute  is  only
107              supported  in some backends (e.g.LDAP), and its support may have
108              further limitations (e.g. LDAP schema rules).
109
110

EXIT STATUS

112       The exit status is 0 on success, nonzero on error.
113
114
115
116libuser                           2009-12-11                       lusermod(1)
Impressum