[PATCH] fedora,script: Allow passwordless SSH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If either user or admin accounts are passwordless, configure SSH server
to allow empty passwords so these accounts can login through SSH.
---
 .../fedoraproject.org/fedora-kickstart-desktop.xml.in               | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in b/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
index bd10fba..03447dd 100644
--- a/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
+++ b/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
@@ -179,6 +179,12 @@ else
     echo <xsl:value-of select="config/admin-password"/> |passwd --stdin root
 fi
 
+if test -z <xsl:value-of select="config/user-password"/> ||
+   test -z <xsl:value-of select="config/admin-password"/>; then
+    # Allow empty password over SSH if any password is empty
+    echo "PermitEmptyPasswords yes" >> /etc/ssh/sshd_config
+fi
+
 # Set user avatar
 if test -n <xsl:value-of select="config/avatar-location"/>; then
 mkdir /mnt/unattended-media
-- 
2.5.5

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux