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

[Libosinfo] [PATCH] fedora,script: Allow passwordless SSH



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


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