openssh: update /etc/pam.d/sshd to use system-remote-login from pam-base.
This commit is contained in:
parent
5161d10ee5
commit
ea946e5c68
|
@ -0,0 +1,6 @@
|
|||
#%PAM-1.0
|
||||
#auth required pam_securetty.so #disable remote root
|
||||
auth include system-remote-login
|
||||
account include system-remote-login
|
||||
password include system-remote-login
|
||||
session include system-remote-login
|
|
@ -3,7 +3,7 @@ _desc="The OpenSSH implementation of SSH protocol"
|
|||
|
||||
pkgname=openssh
|
||||
version=6.7p1
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh
|
||||
--sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody
|
||||
|
@ -14,7 +14,7 @@ hostmakedepends="automake libtool perl"
|
|||
makedepends="zlib-devel libressl-devel pam-devel"
|
||||
short_desc="${_desc} - client"
|
||||
replaces="openssh-client<6.1p1"
|
||||
conf_files="/etc/ssh/moduli /etc/ssh/ssh_config"
|
||||
conf_files="/etc/ssh/moduli /etc/ssh/ssh_config /etc/pam.d/sshd"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.openssh.org"
|
||||
license="BSD"
|
||||
|
@ -47,12 +47,7 @@ post_install() {
|
|||
-e 's|^#\(PrintMotd\) yes|\1 no|g' \
|
||||
${DESTDIR}/etc/ssh/sshd_config
|
||||
|
||||
# Disable pam_cracklib
|
||||
sed '/pam_cracklib.*/d' -i ${DESTDIR}/etc/pam.d/sshd
|
||||
# Enable pam_lastlog(8) by default.
|
||||
echo -e "session\trequired\tpam_lastlog.so\tnever\tsilent\n" >> ${DESTDIR}/etc/pam.d/sshd
|
||||
# Enable pam_systemd by default.
|
||||
echo -e "-session\toptional\tpam_systemd.so\n" >> ${DESTDIR}/etc/pam.d/sshd
|
||||
vinstall ${FILESDIR}/sshd.pam 644 etc/pam.d sshd
|
||||
}
|
||||
|
||||
openssh-server_package() {
|
||||
|
|
Loading…
Reference in New Issue