projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Déplacé variable GATEWAY dans script de configuration de carte réseau
[hvlinux.git]
/
stage3
/
cis-openssh
diff --git
a/stage3/cis-openssh
b/stage3/cis-openssh
index
078ea38
..
2e36ee0
100755
(executable)
--- a/
stage3/cis-openssh
+++ b/
stage3/cis-openssh
@@
-14,7
+14,7
@@
apply_patches ${1}
install -v -m700 -d /var/lib/sshd
chown -v root:sys /var/lib/sshd
install -v -m700 -d /var/lib/sshd
chown -v root:sys /var/lib/sshd
-
hv_groupadd
sshd
+
groupadd -f
sshd
hv_useradd -c sshd-privsep -d /var/lib/sshd -g sshd -s /bin/false sshd
cd ${LFS_TMP}/${1}-build
hv_useradd -c sshd-privsep -d /var/lib/sshd -g sshd -s /bin/false sshd
cd ${LFS_TMP}/${1}-build
@@
-40,8
+40,8
@@
sed -i -e "s!^#PermitRootLogin.*!PermitRootLogin no!g" /etc/ssh/sshd_config
# Enabling X11 forwarding
sed -i -e "s!^#X11Forwarding.*!X11Forwarding yes!g" /etc/ssh/sshd_config
# Enabling X11 forwarding
sed -i -e "s!^#X11Forwarding.*!X11Forwarding yes!g" /etc/ssh/sshd_config
-# Setting MaxAuthTries to
1
-sed -i -e "s!^
#MaxAuthTries.*!MaxAuthTries 1
!g" /etc/ssh/sshd_config
+# Setting MaxAuthTries to
2
+sed -i -e "s!^
[#]*MaxAuthTries.*!MaxAuthTries 3
!g" /etc/ssh/sshd_config
install -v -m740 ${SCRDIR}/bootscripts/sshd /etc/rc.d/init.d
bootscript_add_rc3 sshd 25 70
install -v -m740 ${SCRDIR}/bootscripts/sshd /etc/rc.d/init.d
bootscript_add_rc3 sshd 25 70