1
# Add groups to the system
2
# The following example adds the ubuntu group with members foo and bar and
3
# the group cloud-users.
8
# Add users to the system. Users are added after groups are added.
16
expiredate: 2012-09-01
19
passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/
22
sudo: ALL=(ALL) NOPASSWD:ALL
30
gecos: Magic Cloud App Daemon User
35
# name: The user's login name
36
# gecos: The user name's real name, i.e. "Bob B. Smith"
37
# homedir: Optional. Set to the local path you want to use. Defaults to
39
# primary-group: define the primary group. Defaults to a new group created
40
# named after the user.
41
# groups: Optional. Additional groups to add the user to. Defaults to none
42
# selinux-user: Optional. The SELinux user for the user's login, such as
43
# "staff_u". When this is omitted the system will select the default
45
# lock_passwd: Defaults to true. Lock the password to disable password login
46
# inactive: Create the user as inactive
47
# passwd: The hash -- not the password itself -- of the password you want
48
# to use for this user. You can generate a safe hash via:
49
# mkpasswd --method=SHA-512 --rounds=4096
50
# (the above command would create from stdin an SHA-512 password hash
51
# with 4096 salt rounds)
53
# Please note: while the use of a hashed password is better than
54
# plain text, the use of this feature is not ideal. Also,
55
# using a high number of salting rounds will help, but it should
58
# To highlight this risk, running John the Ripper against the
59
# example hash above, with a readily available wordlist, revealed
60
# the true password in 12 seconds on a i7-2620QM.
62
# In other words, this feature is a potential security risk and is
63
# provided for your convenience only. If you do not fully trust the
64
# medium over which your cloud-config will be transmitted, then you
65
# should use SSH authentication only.
67
# You have thus been warned.
68
# no-create-home: When set to true, do not create home directory.
69
# no-user-group: When set to true, do not create a group named after the user.
70
# no-log-init: When set to true, do not initialize lastlog and faillog database.
71
# ssh-import-id: Optional. Import SSH ids
72
# ssh-authorized-keys: Optional. [list] Add keys to user's authorized keys file
73
# sudo: Defaults to none. Set to the sudo string you want to use, i.e.
74
# ALL=(ALL) NOPASSWD:ALL. To add multiple rules, use the following
77
# - ALL=(ALL) NOPASSWD:/bin/mysql
79
# Note: Please double check your syntax and make sure it is valid.
80
# cloud-init does not parse/check the syntax of the sudo
82
# system: Create the user as a system user. This means no home directory.
85
# Default user creation:
87
# Unless you define users, you will get a 'ubuntu' user on ubuntu systems with the
88
# legacy permission (no password sudo, locked user, etc). If however, you want
89
# to have the 'ubuntu' user in addition to other users, you need to instruct
90
# cloud-init that you also want the default user. To do this use the following
98
# users[0] (the first user in users) overrides the user directive.
100
# The 'default' user above references the distro's config:
104
# plain_text_passwd: 'ubuntu'
109
# groups: [adm, audio, cdrom, dialout, floppy, video, plugdev, dip, netdev]