mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
openssh: restore PermitRootLogin to default
which currently is 'prohibt-password'.
This reverts ca84fd0a9a
.
This commit is contained in:
parent
9eb45ded7c
commit
5ce7496691
1 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'openssh'
|
# Template file for 'openssh'
|
||||||
pkgname=openssh
|
pkgname=openssh
|
||||||
version=8.1p1
|
version=8.1p1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--datadir=/usr/share/openssh
|
configure_args="--datadir=/usr/share/openssh
|
||||||
--sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody
|
--sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody
|
||||||
|
@ -53,12 +53,11 @@ post_install() {
|
||||||
vman contrib/ssh-copy-id.1
|
vman contrib/ssh-copy-id.1
|
||||||
vlicense LICENCE
|
vlicense LICENCE
|
||||||
|
|
||||||
sed -i \
|
# configure to use PAM
|
||||||
|
vsed -i ${DESTDIR}/etc/ssh/sshd_config \
|
||||||
-e 's|^#\(UsePAM\) no|\1 yes|g' \
|
-e 's|^#\(UsePAM\) no|\1 yes|g' \
|
||||||
-e 's|^#\(PermitRootLogin\) .*|\1 yes|g' \
|
|
||||||
-e 's|^#\(ChallengeResponseAuthentication\) yes|\1 no|g' \
|
-e 's|^#\(ChallengeResponseAuthentication\) yes|\1 no|g' \
|
||||||
-e 's|^#\(PrintMotd\) yes|\1 no|g' \
|
-e 's|^#\(PrintMotd\) yes|\1 no|g'
|
||||||
${DESTDIR}/etc/ssh/sshd_config
|
|
||||||
|
|
||||||
vinstall ${FILESDIR}/sshd.pam 644 etc/pam.d sshd
|
vinstall ${FILESDIR}/sshd.pam 644 etc/pam.d sshd
|
||||||
vsv sshd
|
vsv sshd
|
||||||
|
|
Loading…
Add table
Reference in a new issue