stoprn.hop.kim
chroot sftp dans /srv/www/stoprn.hop.kim:
/etc/ssh/sshd_config
Match User stoprn
ChrootDirectory /srv/www/stoprn.hop.kim
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no
et auto restorecon grace à restorecond.service
/etc/selinux/restorecond.conf
/srv/www/stoprn.hop.kim/public/*
/srv/www/stoprn.hop.kim/public/affiches/*
/srv/www/stoprn.hop.kim/public/media/*
(c'est pas recursif)
Pas de commentaires