summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-09-30 12:11:21 -0400
committerScott Moser <smoser@ubuntu.com>2013-09-30 12:11:21 -0400
commitadbc9e73376cc7ef70455197f57aa41104eba7d6 (patch)
tree2bf6133a835dd843abcd8bf1dd2d57bbb48c16fe
parent023265367fc4cd9647c40fdef2a90684b80c2ea8 (diff)
parent290205eb30e1d69138919df266176bed537a1ea0 (diff)
downloadvyos-cloud-init-adbc9e73376cc7ef70455197f57aa41104eba7d6.tar.gz
vyos-cloud-init-adbc9e73376cc7ef70455197f57aa41104eba7d6.zip
add default user to 'sudo' group.
Ubuntu images in 12.04 added the user to the 'admin' group. The admin group was deprecated/replaced with the 'sudo' group in 12.10. d-i adds its first-user to the 'sudo' group, so it makes sense to mimic that behavior for the default user created by cloud-init. That was the original reason behind the presense in the 'admin' group. Also, here I sorted alphabetically the group list. LP: #1228228
-rw-r--r--ChangeLog2
-rw-r--r--config/cloud.cfg2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 880ace21..886e8f5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@
filesystems. Useful if attached disks are not formatted (LP: #1218506)
- Fix usage of libselinux-python when selinux is disabled. [Garrett Holmstrom]
- multi_log: only write to /dev/console if it exists [Garrett Holmstrom]
+ - config/cloud.cfg: add 'sudo' to list groups for the default user
+ (LP: #1228228)
0.7.2:
- add a debian watch file
- add 'sudo' entry to ubuntu's default user (LP: #1080717)
diff --git a/config/cloud.cfg b/config/cloud.cfg
index 382cfaf8..a07cd3b0 100644
--- a/config/cloud.cfg
+++ b/config/cloud.cfg
@@ -84,7 +84,7 @@ system_info:
name: ubuntu
lock_passwd: True
gecos: Ubuntu
- groups: [adm, audio, cdrom, dialout, floppy, video, plugdev, dip, netdev]
+ groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
# Other config here will be given to the distro class and/or path classes