From 0b10752bbc73eebf1feb52aeddec2348ab61f96b Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Jul 03 2019 12:54:40 +0000 Subject: Accept environment variable PERMITROOTLOGIN from anaconda drop-in service file (#1722928) Anaconda pull request: https://github.com/rhinstaller/anaconda/pull/2037 Fedora change: https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd --- diff --git a/sshd.service b/sshd.service index f9a12a8..605eab1 100644 --- a/sshd.service +++ b/sshd.service @@ -8,7 +8,7 @@ Wants=sshd-keygen.target Type=notify EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config EnvironmentFile=-/etc/sysconfig/sshd -ExecStart=/usr/sbin/sshd -D $OPTIONS $CRYPTO_POLICY +ExecStart=/usr/sbin/sshd -D $OPTIONS $CRYPTO_POLICY $PERMITROOTLOGIN ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure