Knowledge QuFTP – jak włączyć debugowanie/logowanie komend klienta FTP?

Status
The first post in this thread is a WikiPost, and can be edited by anyone with the appropriate permissions.
Not open for further replies.

Silas Mariusz

rm -rf /
Help us, GOD!
Apr 5, 2008
10,057
39
3,983
153
41
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
Informacja:
Dla obu poniższych metod należy zalogować się do konsoli serwera po SSH.

Notatka:
Warto wcześniej, przed zalogowaniem zainstalować: Instruktaż/Tutorial - (Linux) Instalacja Entware-Std
Pomocne będą takie narzędzia jak nano lub edytor z Midnight Commandera
Bash:
opkg install mc nano
Instruktaż/Tutorial - (Linux) Instalacja Midnight Commander (Total Commander na QNAP)

Jak włączyć debugowanie w serwerze FTP – QuFTP?
  1. Edytuj plik /etc/init.d/quftp.sh i zmień:
    Bash:
    /sbin/daemon_mgr proftpd start "LD_PRELOAD=/usr/local/lib/libtrash.so TZ=/etc/localtime /usr/local/sbin/proftpd -n > /dev/null 2>&1 &"
    na:
    Bash:
    /sbin/daemon_mgr proftpd start "LD_PRELOAD=/usr/local/lib/libtrash.so TZ=/etc/localtime /usr/local/sbin/proftpd -n -d 10 > /share/Public/proftplog 2>&1 &"

    Wyjaśnienie:
    Parametr -d wskaże włączenie debugowania, poziomu 10 do pliku /share/Public/proftplog

  2. Następnie zrestartuj serwer FTP:
    Bash:
    /etc/init.d/quftp.sh restart

  3. Zreplikuj problem. Logi znajdziesz w udziale sieciowym Public w pliku proftplog

Powyższa metoda w dwóch poleceniach:
Bash:
sed -e "s/proftpd -n > \/dev\/null/proftpd -n -d 10 > \/share\/Public\/proftplog/i" -i /etc/init.d/quftp.sh
/etc/init.d/quftp.sh restart
 
Status
The first post in this thread is a WikiPost, and can be edited by anyone with the appropriate permissions.
Not open for further replies.

Users search this thread by keywords

  1. forum
  2. commander
  3. total commander
  4. Midnight Commander
  5. entware