The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / build / docs / manual / makeusers-syntax.txt
1 // -*- mode:doc -*- ;
2 // vim: set syntax=asciidoc:
3
4 [[makeuser-syntax]]
5 == Makeusers syntax documentation
6
7 The syntax to create users is inspired by the makedev syntax, above, but
8 is specific to Buildroot.
9
10 The syntax for adding a user is a space-separated list of fields, one
11 user per line; the fields are:
12
13 |=================================================================
14 |username |uid |group |gid |password |home |shell |groups |comment
15 |=================================================================
16
17 Where:
18
19 - +username+ is the desired user name (aka login name) for the user.
20   It can not be +root+, and must be unique. If set to +-+, then just a
21   group will be created.
22 - +uid+ is the desired UID for the user. It must be unique, and not
23   +0+. If set to +-1+, then a unique UID will be computed by Buildroot
24   in the range [1000...1999]
25 - +group+ is the desired name for the user's main group. It can not
26   be +root+. If the group does not exist, it will be created.
27 - +gid+ is the desired GID for the user's main group. It must be unique,
28   and not +0+. If set to +-1+, and the group does not already exist, then
29   a unique GID will be computed by Buildroot in the range [1000..1999]
30 - +password+ is the crypt(3)-encoded password. If prefixed with +!+,
31   then login is disabled. If prefixed with +=+, then it is interpreted
32   as clear-text, and will be crypt-encoded (using MD5). If prefixed with
33   +!=+, then the password will be crypt-encoded (using MD5) and login
34   will be disabled. If set to +*+, then login is not allowed.
35 - +home+ is the desired home directory for the user. If set to '-', no
36   home directory will be created, and the user's home will be +/+.
37   Explicitly setting +home+ to +/+ is not allowed.
38 - +shell+ is the desired shell for the user. If set to +-+, then
39   +/bin/false+ is set as the user's shell.
40 - +groups+ is the comma-separated list of additional groups the user
41   should be part of. If set to +-+, then the user will be a member of
42   no additional group. Missing groups will be created with an arbitrary
43   +gid+.
44 - +comment+ (aka https://en.wikipedia.org/wiki/Gecos_field[GECOS]
45   field) is an almost-free-form text.
46
47 There are a few restrictions on the content of each field:
48
49 * except for +comment+, all fields are mandatory.
50 * except for +comment+, fields may not contain spaces.
51 * no field may contain a colon (+:+).
52
53 If +home+ is not +-+, then the home directory, and all files below,
54 will belong to the user and its main group.
55
56 Examples:
57
58 ----
59 foo -1 bar -1 !=blabla /home/foo /bin/sh alpha,bravo Foo user
60 ----
61
62 This will create this user:
63
64 - +username+ (aka login name) is: +foo+
65 - +uid+ is computed by Buildroot
66 - main +group+ is: +bar+
67 - main group +gid+ is computed by Buildroot
68 - clear-text +password+ is: +blabla+, will be crypt(3)-encoded, and login is disabled.
69 - +home+ is: +/home/foo+
70 - +shell+ is: +/bin/sh+
71 - +foo+ is also a member of +groups+: +alpha+ and +bravo+
72 - +comment+ is: +Foo user+
73
74 ----
75 test 8000 wheel -1 = - /bin/sh - Test user
76 ----
77
78 This will create this user:
79
80 - +username+ (aka login name) is: +test+
81 - +uid+ is : +8000+
82 - main +group+ is: +wheel+
83 - main group +gid+ is computed by Buildroot, and will use the value defined in the rootfs skeleton
84 - +password+ is empty (aka no password).
85 - +home+ is +/+ but will not belong to +test+
86 - +shell+ is: +/bin/sh+
87 - +test+ is not a member of any additional +groups+
88 - +comment+ is: +Test user+