Home tmade.de

Home Wiki

Configuration

FTP (proftpd)

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

Load Permanent Config

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
nas/qnap.txt · Last modified: 2017/12/09 01:19 by 127.0.0.1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki