Config File:
vi /mnt/HDA_ROOT/.config/proftpd.conf
Activate Logging:
TransferLog None
to
TransferLog /share/HDA_DATA/Qweb/ftplogs/xferlog
After “TransferLog”:
LogFormat userlog "%u %b" ExtendedLog /share/HDA_DATA/Qweb/ftplogs/logfile_ftp WRITE,READ userlog
Reload Service:
/etc/init.d/ftp.sh reconfig
mount -t ext2 /dev/mtdblock5 /tmp/config vi /tmp/config/autorun.sh chmod +x /tmp/config/autorun.sh umount /tmp/config
autorun.sh:
#!/bin/sh cp /share/windows_share/qnap/sshd_config /etc/ssh/sshd_config mkdir -p /share/HDA_DATA/Qweb/ftplogs/ /etc/init.d/login.sh restart cp /share/windows_share/qnap/proftpd.conf /mnt/HDA_ROOT/.config/proftpd.conf /etc/init.d/ftp.sh reconfig
Restart sshd:
killall -HUP sshd
or maybe
/etc/init.d/login.sh restart