• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/docs/manual/makeusers-syntax.txt
Yann E. MORINYann E. MORIN committed 1f3af04db7712 Apr 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
- main group +gid+ is computed by Buildroot, and will use the value defined in the rootfs skeleton
 
1
// -*- mode:doc -*- ;
2
​
3
[[makeuser-syntax]]
4
Makeuser syntax documentation
5
-----------------------------
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.
21
- +uid+ is the desired UID for the user. It must be unique, and not
22
  +0+. If set to +-1+, then a unique UID will be computed by Buildroot
23
  in the range [1000...1999]
24
- +group+ is the desired name for the user's main group. It can not
25
  be +root+. If the group does not exist, it will be created.
26
- +gid+ is the desired GID for the user's main group. It must be unique,
27
  and not +0+. If set to +-1+, and the group does not already exist, then
28
  a unique GID will be computed by Buildroot in the range [1000..1999]
29
- +password+ is the crypt(3)-encoded password. If prefixed with +!+,
30
  then login is disabled. If prefixed with +=+, then it is interpreted
31
  as clear-text, and will be crypt-encoded (using MD5). If prefixed with
32
  +!=+, then the password will be crypt-encoded (using MD5) and login
33
  will be disabled. If set to +*+, then login is not allowed.
34
- +home+ is the desired home directory for the user. If set to '-', no
35
  home directory will be created, and the user's home will be +/+.
36
  Explicitly setting +home+ to +/+ is not allowed.
37
- +shell+ is the desired shell for the user. If set to +-+, then
38
  +/bin/false+ is set as the user's shell.
39
- +groups+ is the comma-separated list of additional groups the user
40
  should be part of. If set to +-+, then the user will be a member of
41
  no additional group. Missing groups will be created with an arbitrary
42
  +gid+.
43
- +comment+ (aka https://en.wikipedia.org/wiki/Gecos_field[GECOS]
44
  field) is an almost-free-form text.
45
​
46
There are a few restrictions on the content of each field:
47
​
48
* except for +comment+, all fields are mandatory.
49
* except for +comment+, fields may not contain spaces.
50
* no field may contain a colon (+:+).
51
​
52
If +home+ is not +-+, then the home directory, and all files below,
53
will belong to the user and its main group.
54
​
55
Examples:
56
​
57
----
58
foo -1 bar -1 !=blabla /home/foo /bin/sh alpha,bravo Foo user
59
----
60
​
61
This will create this user:
62
​
63
- +username+ (aka login name) is: +foo+
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.