roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
835 stars 110 forks source link

FTP Upload doesn't work with "create directory tree" #485

Closed janekjelonek closed 1 year ago

janekjelonek commented 1 year ago

YiHack version 0.4.8. / yi-hack-MStar / Yi 1080p.

I want to upload video files to my local synology nas via FTP.

  1. Issue similiar to https://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/577
  2. I played with various ftp setings including 'Apply default UNIX permissions' - with no luck. To be honest, i am not an expert here.
  3. I followed debugging path suggested by roleoroleo from referenced issues: /home/yi-hack/script/ftppush.sh cron output: image command echo -e "USER s2ftp\r\nPASS MY_PASS\r\nmkd /cam/test/2023Y02M05D14H\r\nquit\r\n" | nc -w 5 MY_IP 21 | grep "2023Y02M05D14H" creates directory: image

PROBABLY SOLVED

by making ftp user an owner of the directory (and subdirs) in synology directory properties. I will leave it here for future reference.

janekjelonek commented 1 year ago

PROBABLY SOLVED by making ftp user an owner of the directory (and subdirs) in synology directory properties. I will leave it here for future reference.