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
This commit is contained in:
Jakub Jelen 2019-07-03 14:54:38 +02:00
parent 36a44721c5
commit 0b10752bbc

View File

@ -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