No ubuntu user, disallow root login, root shell on tty1
Conflicts:
ubuntu-14.04/scripts/base.sh
ubuntu-14.04/template.json
diff --git a/ubuntu-14.04/http/preseed.cfg b/ubuntu-14.04/http/preseed.cfg
index 8ffddd9..d2b6f92 100644
--- a/ubuntu-14.04/http/preseed.cfg
+++ b/ubuntu-14.04/http/preseed.cfg
@@ -13,6 +13,7 @@
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/get_hostname string unassigned-hostname
+d-i partman-auto/disk string /dev/sda /dev/vda
d-i partman-auto/method string regular
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
@@ -22,14 +23,14 @@
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string \
- boot-root:: \
+ boot-root :: \
512 512 -1 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
options/noatime{ noatime } \
- . \
+ . \
d-i pkgsel/include string openssh-server
d-i pkgsel/install-language-support boolean false
@@ -39,6 +40,12 @@
d-i pkgsel/upgrade select none
d-i time/zone string UTC
+d-i passwd/root-login boolean true
+d-i passwd/make-user boolean false
+d-i openssh-server/permit-root-login boolean true
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
tasksel tasksel/first multiselect minimal, ssh-server, openssh-server
+
+d-i preseed/late_command string \
+ in-target sed -i 's/PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config