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

NAME

6       lnewusers - Create new user accounts
7
8

SYNOPSIS

10       lnewusers [OPTION]...
11
12

DESCRIPTION

14       Creates new user accounts using data read from standard input.
15
16       The  input  data  consists  of  lines,  each line has 7 colon-separated
17       fields:
18
19
20       User name
21
22
23       Plaintext password
24
25
26       User ID
27              lnewusers refuses to create users with user ID 0 (the root  user
28              ID).
29
30
31       Group  If  this field is a valid group ID, it is interpreted as a group
32              ID, otherwise as a group name.  If the field is empty,  a  group
33              name equal to user name is used.
34
35              If  the specified group does not exist, it is automatically cre‐
36              ated.  If the group is specified with a group  ID,  the  created
37              group has group name equal to the user name.
38
39
40       GECOS  The  GECOS field is traditionally used to store user's real name
41              and other information.
42
43
44       Home directory
45              If this field is empty, a default specified by libuser  configu‐
46              ration,  or  /home/username  if  libuser  configuration does not
47              specify a default, is used.
48
49
50       Login shell
51              If this field is empty, a default specified by libuser  configu‐
52              ration is used.
53
54
55       Errors  in user specifications are reported and processing continues on
56       the next line.
57
58

OPTIONS

60       -f, --file=file
61              Read account data from file instead of standard input.
62
63
64       -i, --interactive
65              Ask all questions when connecting to the user database, even  if
66              default answers are set up in libuser configuration.
67
68
69       -M, --nocreatehome
70              Don't create home directories.
71
72
73       -n, --nocreatemail
74              Don't create mail spool files.
75
76

EXIT STATUS

78       The  exit  status  is  0 on success, nonzero on fatal error.  Errors in
79       user specifications are not reflected in the exit status.
80
81
82
83libuser                           Jul 13 2008                     lnewusers(1)
Impressum