Przeglądaj źródła

Merge pull request #1589 from ioannidesalex/patch-33

vsftpd / fail2ban Fix
Serghey Rodin 7 lat temu
rodzic
commit
90a60579f3
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      install/vst-install-ubuntu.sh

+ 6 - 0
install/vst-install-ubuntu.sh

@@ -943,6 +943,12 @@ done
 
 if [ "$vsftpd" = 'yes' ]; then
     cp -f $vestacp/vsftpd/vsftpd.conf /etc/
+    touch /var/log//vsftpd.log
+    chown root:adm /var/log/vsftpd.log
+    chmod 640 /var/log/vsftpd.log
+    touch /var/log/xferlog
+    chown root:adm /var/log/xferlog
+    chmod 640 /var/log/xferlog
     update-rc.d vsftpd defaults
     service vsftpd start
     check_result $? "vsftpd start failed"