summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-05-14 21:46:26 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-05-14 21:46:26 +0400
commit33f2624dc08487afa53565352bc5c09282c9a90a (patch)
tree26d693f9c72b128c182075e39bb1a68ad1f6ad86
parentefa297a93a79c0b2b12dd64cdd4bdaca0e43555b (diff)
downloadlive-33f2624dc08487afa53565352bc5c09282c9a90a.tar.gz
Make sure root login via password is enabled
-rwxr-xr-xprotostar7
1 files changed, 5 insertions, 2 deletions
diff --git a/protostar b/protostar
index 9052684..c535955 100755
--- a/protostar
+++ b/protostar
@@ -147,9 +147,12 @@ rm -rf "${ROOT}"/usr/share/doc/*
rm -rf "${ROOT}"/usr/share/locale/*/LC_MESSAGES
rm -rf "${ROOT}"/usr/share/man/*/man[0-9]*
-#sed -i '/^PermitRootLogin/ s,no,yes,' /etc/ssh/sshd_config
+# Enable root login by password, openssh >= 6.6:
+sed -i \
+ -e '/^PermitRootLogin/ s,without-password,yes,' \
+ "${ROOT}/etc/ssh/sshd_config"
-cat <<VFSTAB > $ROOT/etc/vfstab
+cat <<VFSTAB > "$ROOT/etc/vfstab"
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#