diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-05-14 21:46:26 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-05-14 21:46:26 +0400 |
commit | 33f2624dc08487afa53565352bc5c09282c9a90a (patch) | |
tree | 26d693f9c72b128c182075e39bb1a68ad1f6ad86 | |
parent | efa297a93a79c0b2b12dd64cdd4bdaca0e43555b (diff) | |
download | live-33f2624dc08487afa53565352bc5c09282c9a90a.tar.gz |
Make sure root login via password is enabled
-rwxr-xr-x | protostar | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 # |