summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-28 14:39:46 -0500
committerScott Moser <smoser@ubuntu.com>2011-01-28 14:39:46 -0500
commit7d26b49482f5e7a4205d3a7999cd9db11a696993 (patch)
treeb4b659e9a2e71724cc48818fed58d11d60e974a6 /doc
parent8038c24d6dce45a4cc7eab55323c39901a7b072a (diff)
parent818ac2e096ecf14f11f4adb9de0155e3e2f8a93f (diff)
downloadvyos-cloud-init-7d26b49482f5e7a4205d3a7999cd9db11a696993.tar.gz
vyos-cloud-init-7d26b49482f5e7a4205d3a7999cd9db11a696993.zip
add support for setting passwords and managing PasswordAuthentication
Note: by default, nothing is done. No users will have passwords set, nor will sshd's configuration be changed unless cloud-config is modified. Additionally, by default, users whose passwords are set have their password expired, forcing a change.
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt
index 443fee2e..0a1d4279 100644
--- a/doc/examples/cloud-config.txt
+++ b/doc/examples/cloud-config.txt
@@ -346,3 +346,40 @@ timezone: US/Eastern
# if either is empty, then no change of ownership will be done
def_log_file: /var/log/my-logging-file.log
syslog_fix_perms: syslog:root
+
+# you can set passwords for a user or multiple users
+# this is off by default.
+# to set the default user's password, use the 'password' option.
+# if set, to 'R' or 'RANDOM', then a random password will be
+# generated and written to stdout (the console)
+# password: passw0rd
+#
+# also note, that this will expire the password, forcing a change
+# on first login. If you do not want to expire, see 'chpasswd' below.
+#
+# By default in the UEC images password authentication is disabled
+# Thus, simply setting 'password' as above will only allow you to login
+# via the console.
+#
+# in order to enable password login via ssh you must set
+# 'ssh_pwauth'.
+# If it is set, to 'True' or 'False', then sshd_config will be updated
+# to ensure the desired function. If not set, or set to '' or 'unchanged'
+# then sshd_config will not be updated.
+# ssh_pwauth: True
+#
+# there is also an option to set multiple users passwords, using 'chpasswd'
+# That looks like the following, with 'expire' set to 'True' by default.
+# to not expire users passwords, set 'expire' to 'False':
+# chpasswd:
+# list: |
+# user1:password1
+# user2:RANDOM
+# expire: True
+# ssh_pwauth: [ True, False, "" or "unchanged" ]
+#
+# So, a simple working example to allow login via ssh, and not expire
+# for the default user would look like:
+password: passw0rd
+chpasswd: { expire: False }
+ssh_pwauth: True