FTP home directory on filesystem

    • OMV 1.0
    • FTP home directory on filesystem

      Before I updated from OMV 0.56, the FTP home directory was located in /home/ftp/. I liked to use it for quickly accessing all the filesystems and shares. Now after updating to 1.0.29, the FTP home directory appears to have changed to /srv/ftp. The configuration file at /etc/proftpd/proftpd.conf specifies this with DefaultRoot /srv/ftp.

      The weird part is that the folders of that directory appear empty.

      Source Code

      1. aidan@a-nas:/srv/ftp$ pwd
      2. /srv/ftp
      3. aidan@a-nas:/srv/ftp$ ls -la
      4. total 64
      5. drwxr-xr-x 14 ftp nogroup 4096 Oct 30 23:07 .
      6. drwxr-xr-x 4 root root 4096 Oct 30 22:25 ..
      7. drwxr-xr-x 2 root root 4096 Oct 30 22:26 BMovies
      8. drwxr-xr-x 2 root root 4096 Oct 30 22:26 C
      9. drwxr-xr-x 2 root root 4096 Oct 30 22:26 D
      10. drwxr-xr-x 2 root root 4096 Oct 30 22:26 Data
      11. drwxr-xr-x 2 root root 4096 Oct 30 22:26 Games
      12. drwxr-xr-x 2 root root 4096 Oct 30 22:26 Movies
      13. drwxr-xr-x 2 root root 4096 Oct 30 22:26 Programs
      14. -rwxrwxrwx 1 root root 226 Oct 27 16:56 README
      15. drwxr-xr-x 2 root root 4096 Oct 30 22:26 ROMs
      16. drwxr-xr-x 2 root root 4096 Oct 30 22:26 SpecialMovies
      17. drwxr-xr-x 2 root root 4096 Oct 30 22:26 TV
      18. drwxr-xr-x 2 root root 4096 Oct 30 22:26 Virtualbox
      19. drwxr-xr-x 2 root root 4096 Oct 30 22:26 webpage
      20. -rw-r--r-- 1 root root 17 Oct 30 22:26 welcome.msg
      21. aidan@a-nas:/srv/ftp$ tree
      22. .
      23. ├── BMovies
      24. ├── C
      25. ├── D
      26. ├── Data
      27. ├── Games
      28. ├── Movies
      29. ├── Programs
      30. ├── README
      31. ├── ROMs
      32. ├── SpecialMovies
      33. ├── TV
      34. ├── Virtualbox
      35. ├── webpage
      36. └── welcome.msg
      37. 12 directories, 2 files
      Display All


      Yet when someone uses the FTP everything appears as normal. All the files and subdirectories exist and everything is happy. So what I'd like to know is how to return this to the previous behavior. It would be nice if I could do this without manually softlinking the directories to their actual locations in /media.

      Many thanks!
    • You need to setup an environmental variable for the path you want for proftpd in the default openmediavault file. Take a look here

      wiki.openmediavault.org/index.…tle=Environment_Variables (this one is quite outdated, but you'll get the idea)

      and here

      sourceforge.net/p/openmediavau…mediavault/mkconf/proftpd

      A clean OMV ftp setup doesn't create those folders, they are there remaining from the previous version. I my case I just deleted them, proftp still works.

      You can use symlinks if you want access from another path
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server