No folders when connecting to FTP

    • OMV 4.x
    • No folders when connecting to FTP

      Hello :)

      I'm not able to get folders when connectiong to FTP

      User with /bin/bash shell and read/write privileges (not ACL ^^) on the 3 folders I want
      I'm able to successfully connect to FTP with the user/password but I see an empty root

      I have configured FTP with this guide : ProFTP w/ Passive Ports setup Guide
      English isn't my native language, so, sorry if I made any mistake ^^

      OMV 4.1.6 | 64 bit | openmediavault-omvextrasorg 4.1.6
    • Nope, they are added in the FTP section :(

      My proftpd.conf file

      Source Code

      1. Include /etc/proftpd/modules.conf
      2. LoadModule mod_vroot.c
      3. UseIPv6 on
      4. ServerName "www"
      5. ServerType standalone
      6. DeferWelcome on
      7. MultilineRFC2228 on
      8. DefaultServer on
      9. ShowSymlinks on
      10. DisplayChdir .message true
      11. ListOptions "-l"
      12. MaxInstances 30
      13. DenyFilter \*.*/
      14. User proftpd
      15. Group nogroup
      16. Umask 000 000
      17. PersistentPasswd off
      18. TimesGMT off
      19. AllowOverwrite on
      20. AuthOrder mod_auth_pam.c* mod_auth_unix.c
      21. DefaultTransferMode ascii
      22. #SystemLog /var/log/proftpd/proftpd.log
      23. <IfModule mod_facl.c>
      24. FACLEngine on
      25. </IfModule>
      26. <IfModule mod_quotatab.c>
      27. QuotaEngine off
      28. </IfModule>
      29. <IfModule mod_ratio.c>
      30. Ratios off
      31. </IfModule>
      32. <IfModule mod_delay.c>
      33. DelayEngine on
      34. </IfModule>
      35. <IfModule mod_ctrls.c>
      36. ControlsEngine on
      37. ControlsMaxClients 2
      38. ControlsLog /var/log/proftpd/controls.log
      39. ControlsInterval 5
      40. ControlsSocket /var/run/proftpd/proftpd.sock
      41. </IfModule>
      42. <IfModule mod_ctrls_admin.c>
      43. AdminControlsEngine off
      44. </IfModule>
      45. <IfModule mod_vroot.c>
      46. VRootEngine on
      47. VRootLog /var/log/proftpd/vroot.log
      48. </IfModule>
      49. Include /etc/proftpd/tls.conf
      50. Port 21
      51. TransferLog /var/log/proftpd/xferlog
      52. IdentLookups off
      53. UseReverseDNS off
      54. TimeoutIdle 600
      55. TimeoutNoTransfer 600
      56. TimeoutStalled 600
      57. PassivePorts 14100 14105
      58. AllowRetrieveRestart on
      59. AllowStoreRestart on
      60. DeleteAbortedStores off
      61. MaxConnectionsPerHost 10
      62. <Directory />
      63. HideFiles (welcome.msg)
      64. </Directory>
      65. <IfModule mod_vroot.c>
      66. VRootAlias "/srv/****************"
      67. </IfModule>
      68. <Directory /****************>
      69. <Limit ALL>
      70. AllowUser OR user
      71. DenyAll
      72. </Limit>
      73. <Limit READ DIRS>
      74. AllowUser OR user
      75. DenyAll
      76. </Limit>
      77. </Directory>
      78. <IfModule mod_vroot.c>
      79. VRootAlias "/srv/****************"
      80. </IfModule>
      81. <Directory /****************>
      82. <Limit ALL>
      83. AllowUser OR user
      84. DenyAll
      85. </Limit>
      86. <Limit READ DIRS>
      87. AllowUser OR user
      88. DenyAll
      89. </Limit>
      90. </Directory>
      91. <IfModule mod_vroot.c>
      92. VRootAlias "/srv/****************"
      93. </IfModule>
      94. <Directory /****************>
      95. <Limit ALL>
      96. AllowUser OR user
      97. DenyAll
      98. </Limit>
      99. <Limit READ DIRS>
      100. AllowUser OR user
      101. DenyAll
      102. </Limit>
      103. </Directory>
      104. <IfModule mod_auth.c>
      105. DefaultRoot /srv/ftp
      106. MaxClients 5
      107. MaxLoginAttempts 1
      108. RequireValidShell on
      109. # This option is useless because this is handled via the PAM
      110. # pam_listfile.so module, so set it to 'off' by default.
      111. UseFtpUsers off
      112. </IfModule>
      113. <IfModule mod_auth_pam.c>
      114. AuthPAM on
      115. AuthPAMConfig proftpd
      116. </IfModule>
      117. <IfModule mod_ban.c>
      118. BanEngine off
      119. BanControlsACLs all allow user root
      120. BanLog /var/log/proftpd/ban.log
      121. BanMessage Host %a has been banned
      122. BanTable /var/run/proftpd/ban.tab
      123. </IfModule>
      124. DisplayLogin /srv/ftp/welcome.msg
      125. <IfModule mod_wrap.c>
      126. TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
      127. TCPAccessSyslogLevels info warn
      128. TCPServiceName ftpd
      129. </IfModule>
      Display All
      English isn't my native language, so, sorry if I made any mistake ^^

      OMV 4.1.6 | 64 bit | openmediavault-omvextrasorg 4.1.6
    • jroch74 wrote:

      Nope, they are added in the FTP section :(

      My proftpd.conf file

      Source Code

      1. Include /etc/proftpd/modules.conf
      2. LoadModule mod_vroot.c
      3. UseIPv6 on
      4. ServerName "www"
      5. ServerType standalone
      6. DeferWelcome on
      7. MultilineRFC2228 on
      8. DefaultServer on
      9. ShowSymlinks on
      10. DisplayChdir .message true
      11. ListOptions "-l"
      12. MaxInstances 30
      13. DenyFilter \*.*/
      14. User proftpd
      15. Group nogroup
      16. Umask 000 000
      17. PersistentPasswd off
      18. TimesGMT off
      19. AllowOverwrite on
      20. AuthOrder mod_auth_pam.c* mod_auth_unix.c
      21. DefaultTransferMode ascii
      22. #SystemLog /var/log/proftpd/proftpd.log
      23. <IfModule mod_facl.c>
      24. FACLEngine on
      25. </IfModule>
      26. <IfModule mod_quotatab.c>
      27. QuotaEngine off
      28. </IfModule>
      29. <IfModule mod_ratio.c>
      30. Ratios off
      31. </IfModule>
      32. <IfModule mod_delay.c>
      33. DelayEngine on
      34. </IfModule>
      35. <IfModule mod_ctrls.c>
      36. ControlsEngine on
      37. ControlsMaxClients 2
      38. ControlsLog /var/log/proftpd/controls.log
      39. ControlsInterval 5
      40. ControlsSocket /var/run/proftpd/proftpd.sock
      41. </IfModule>
      42. <IfModule mod_ctrls_admin.c>
      43. AdminControlsEngine off
      44. </IfModule>
      45. <IfModule mod_vroot.c>
      46. VRootEngine on
      47. VRootLog /var/log/proftpd/vroot.log
      48. </IfModule>
      49. Include /etc/proftpd/tls.conf
      50. Port 21
      51. TransferLog /var/log/proftpd/xferlog
      52. IdentLookups off
      53. UseReverseDNS off
      54. TimeoutIdle 600
      55. TimeoutNoTransfer 600
      56. TimeoutStalled 600
      57. PassivePorts 14100 14105
      58. AllowRetrieveRestart on
      59. AllowStoreRestart on
      60. DeleteAbortedStores off
      61. MaxConnectionsPerHost 10
      62. <Directory />
      63. HideFiles (welcome.msg)
      64. </Directory>
      65. <IfModule mod_vroot.c>
      66. VRootAlias "/srv/****************"
      67. </IfModule>
      68. <Directory /****************>
      69. <Limit ALL>
      70. AllowUser OR user
      71. DenyAll
      72. </Limit>
      73. <Limit READ DIRS>
      74. AllowUser OR user
      75. DenyAll
      76. </Limit>
      77. </Directory>
      78. <IfModule mod_vroot.c>
      79. VRootAlias "/srv/****************"
      80. </IfModule>
      81. <Directory /****************>
      82. <Limit ALL>
      83. AllowUser OR user
      84. DenyAll
      85. </Limit>
      86. <Limit READ DIRS>
      87. AllowUser OR user
      88. DenyAll
      89. </Limit>
      90. </Directory>
      91. <IfModule mod_vroot.c>
      92. VRootAlias "/srv/****************"
      93. </IfModule>
      94. <Directory /****************>
      95. <Limit ALL>
      96. AllowUser OR user
      97. DenyAll
      98. </Limit>
      99. <Limit READ DIRS>
      100. AllowUser OR user
      101. DenyAll
      102. </Limit>
      103. </Directory>
      104. <IfModule mod_auth.c>
      105. DefaultRoot /srv/ftp
      106. MaxClients 5
      107. MaxLoginAttempts 1
      108. RequireValidShell on
      109. # This option is useless because this is handled via the PAM
      110. # pam_listfile.so module, so set it to 'off' by default.
      111. UseFtpUsers off
      112. </IfModule>
      113. <IfModule mod_auth_pam.c>
      114. AuthPAM on
      115. AuthPAMConfig proftpd
      116. </IfModule>
      117. <IfModule mod_ban.c>
      118. BanEngine off
      119. BanControlsACLs all allow user root
      120. BanLog /var/log/proftpd/ban.log
      121. BanMessage Host %a has been banned
      122. BanTable /var/run/proftpd/ban.tab
      123. </IfModule>
      124. DisplayLogin /srv/ftp/welcome.msg
      125. <IfModule mod_wrap.c>
      126. TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
      127. TCPAccessSyslogLevels info warn
      128. TCPServiceName ftpd
      129. </IfModule>
      Display All
      Non of those folders have privileges.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Source Code

      1. [{"passno": 2, "hidden": false, "fsname": "49182871-9c75-4a9b-8b23-b51ab41c5b54", "freq": 0, "type": "ext4", "opts": "defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl", "uuid": "5afa1785-5498-48c3-9d62-f837e8fec326", "dir": "/media/49182871-9c75-4a9b-8b23-b51ab41c5b54"}, {"passno": 2, "hidden": false, "fsname": "/dev/disk/by-label/GRAPPE8", "freq": 0, "type": "ext4", "opts": "defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl", "uuid": "6f7884e1-df31-47e4-85af-c5a8edf66523", "dir": "/srv/dev-disk-by-label-GRAPPE8"}, {"passno": 0, "hidden": true, "fsname": "5d7a7971-924d-4d40-8eff-1c61e0f27256", "freq": 0, "type": "fuse.mergerfs", "opts": "", "uuid": "facaef16-d32b-4cc4-8812-794f407143f9", "dir": "/srv/5d7a7971-924d-4d40-8eff-1c61e0f27256"}]

      Source Code

      1. [{"comment": "Fichiers infect\u00e9s", "name": "Antivirus", "reldirpath": "antivirus/quarantine/", "privileges": {"privilege": []}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "34199a64-fbb9-4840-8131-891566b03251"}, {"comment": "Nextcloud", "name": "Nextcloud", "reldirpath": "www/nextcloud/", "privileges": {"privilege": []}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "5b0072cb-9524-47f8-a0b3-c42411e14548"}, {"comment": "Racine", "name": "RACINE", "reldirpath": "/", "privileges": {"privilege": []}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "3fb980a5-1d13-405a-9cb0-cbf339e0fecd"}, {"comment": "Utilisateurs", "name": "Users", "reldirpath": "users/", "privileges": {"privilege": []}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "a5d850a7-958c-49a2-88cf-9d26f5d315d3"}, {"comment": "Backup", "name": "Backup", "reldirpath": "backup/", "privileges": {"privilege": []}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "db8455be-9bbd-4f39-bd59-e2bf14026d79"}, {"comment": "MyWebSQL", "name": "MyWebSQL", "reldirpath": "www/mywebsql/", "privileges": {"privilege": []}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "269ee581-a0db-4a1d-b637-debfbfaea104"}, {"comment": "", "name": "RACINE_8TO", "reldirpath": "/", "privileges": {"privilege": []}, "mntentref": "6f7884e1-df31-47e4-85af-c5a8edf66523", "uuid": "7d7eb9de-6049-46cd-82ea-6c9d9684cbe1"}, {"comment": "", "name": "RACINE_2TO", "reldirpath": "/", "privileges": {"privilege": []}, "mntentref": "5afa1785-5498-48c3-9d62-f837e8fec326", "uuid": "87666e87-264f-42c2-b397-30009eef3c18"}, {"comment": "", "name": "DL", "reldirpath": "common/Films/", "privileges": {"privilege": []}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "a4a78a5c-071a-48ae-9ae1-5628d7bc6e9e"}, {"comment": "", "name": "Crazy_Drink_Prod", "reldirpath": "www/crazydrink/production/", "privileges": {"privilege": [{"name": "crazydrink", "type": "user", "perms": 7}, {"name": "ftp-crazydrink", "perms": 7, "type": "user"}]}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "5b0f67f8-b9af-4936-a6ab-ea462f90c0a0"}, {"comment": "", "name": "Crazy_Drink_Beta", "reldirpath": "www/crazydrink/beta/", "privileges": {"privilege": [{"name": "crazydrink", "type": "user", "perms": 7}, {"name": "ftp-crazydrink", "perms": 7, "type": "user"}]}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "b214616f-c158-4661-b6b0-db0ecf343566"}, {"comment": "", "name": "Crazy_Drink_Blog", "reldirpath": "www/crazydrink/blog/", "privileges": {"privilege": [{"name": "crazydrink", "type": "user", "perms": 7}, {"name": "ftp-crazydrink", "perms": 7, "type": "user"}]}, "mntentref": "facaef16-d32b-4cc4-8812-794f407143f9", "uuid": "a33118a8-ff0d-4ddf-8ac9-d0af6c39d282"}]

      Source Code

      1. [{"comment": "", "uuid": "32d7f241-cd0f-4a78-8dda-ba8b685a48f2", "enable": true, "extraoptions": "", "sharedfolderref": "5b0f67f8-b9af-4936-a6ab-ea462f90c0a0"}, {"comment": "", "uuid": "c6082282-e65d-4d0d-9131-7e7492ee2dd2", "enable": true, "extraoptions": "", "sharedfolderref": "b214616f-c158-4661-b6b0-db0ecf343566"}, {"comment": "", "uuid": "29cfe17a-6751-4fa4-a23e-31b16ef21688", "enable": true, "extraoptions": "", "sharedfolderref": "a33118a8-ff0d-4ddf-8ac9-d0af6c39d282"}]
      English isn't my native language, so, sorry if I made any mistake ^^

      OMV 4.1.6 | 64 bit | openmediavault-omvextrasorg 4.1.6
    • Everything seems correct, folder 'Crazy_Drink_Blog' ' Crazy_Drink_Beta' and 'Crazy_Drink_Prod' are with privileges assigned in the database, but not yet in the proftpd.conf file according to your previous post

      Please run

      omv-mkconf proftpd

      Then check in /etc/proftpd/proftpd.conf at least on of the usernames there
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Hi,

      I have the same problem. Probably a misconfiguration problem but cannot find where…
      Proftpd is configured with OMV GUI without any changes. I have tried with Filezilla and WinSCP, both fail. The connection seems to happen but no folder is visible.

      Here is my conf file.

      Source Code

      1. root@home-server:/sharedfolders# cat /etc/proftpd/proftpd.conf
      2. Include /etc/proftpd/modules.conf
      3. LoadModule mod_vroot.c
      4. UseIPv6 on
      5. ServerName "home-server"
      6. ServerType standalone
      7. DeferWelcome on
      8. MultilineRFC2228 on
      9. DefaultServer on
      10. ShowSymlinks on
      11. DisplayChdir .message true
      12. ListOptions "-l"
      13. MaxInstances 30
      14. DenyFilter \*.*/
      15. User proftpd
      16. Group nogroup
      17. Umask 000 000
      18. PersistentPasswd off
      19. TimesGMT off
      20. AllowOverwrite on
      21. AuthOrder mod_auth_pam.c* mod_auth_unix.c
      22. DefaultTransferMode ascii
      23. #SystemLog /var/log/proftpd/proftpd.log
      24. <IfModule mod_facl.c>
      25. FACLEngine on
      26. </IfModule>
      27. <IfModule mod_quotatab.c>
      28. QuotaEngine off
      29. </IfModule>
      30. <IfModule mod_ratio.c>
      31. Ratios off
      32. </IfModule>
      33. <IfModule mod_delay.c>
      34. DelayEngine on
      35. </IfModule>
      36. <IfModule mod_ctrls.c>
      37. ControlsEngine on
      38. ControlsMaxClients 2
      39. ControlsLog /var/log/proftpd/controls.log
      40. ControlsInterval 5
      41. ControlsSocket /var/run/proftpd/proftpd.sock
      42. </IfModule>
      43. <IfModule mod_ctrls_admin.c>
      44. AdminControlsEngine off
      45. </IfModule>
      46. <IfModule mod_vroot.c>
      47. VRootEngine on
      48. VRootLog /var/log/proftpd/vroot.log
      49. </IfModule>
      50. Port 21
      51. TransferLog /var/log/proftpd/xferlog
      52. IdentLookups off
      53. UseReverseDNS off
      54. TimeoutIdle 1200
      55. TimeoutNoTransfer 600
      56. TimeoutStalled 600
      57. AllowRetrieveRestart on
      58. AllowStoreRestart on
      59. DeleteAbortedStores off
      60. MaxConnectionsPerHost 5
      61. <Directory />
      62. HideFiles (welcome.msg)
      63. </Directory>
      64. <IfModule mod_vroot.c>
      65. VRootAlias "/srv/dev-disk-by-id-ata-SAMSUNG_MZ7LN512HCHP-000L1_S1ZKNXAG526958-part5/FTP" "FTP"
      66. </IfModule>
      67. <Directory /FTP>
      68. <Limit ALL>
      69. AllowUser OR root
      70. AllowGroup OR root
      71. DenyAll
      72. </Limit>
      73. <Limit READ DIRS>
      74. AllowUser OR root
      75. AllowGroup OR root
      76. DenyAll
      77. </Limit>
      78. </Directory>
      79. <IfModule mod_auth.c>
      80. DefaultRoot /srv/ftp
      81. MaxClients 3
      82. MaxLoginAttempts 3
      83. RequireValidShell on
      84. RootLogin on
      85. # This option is useless because this is handled via the PAM
      86. # pam_listfile.so module, so set it to 'off' by default.
      87. UseFtpUsers off
      88. </IfModule>
      89. <IfModule mod_auth_pam.c>
      90. AuthPAM on
      91. AuthPAMConfig proftpd
      92. </IfModule>
      93. <IfModule mod_ban.c>
      94. BanEngine off
      95. BanControlsACLs all allow user root
      96. BanLog /var/log/proftpd/ban.log
      97. BanMessage Host %a has been banned
      98. BanTable /var/run/proftpd/ban.tab
      99. </IfModule>
      100. DisplayLogin /srv/ftp/welcome.msg
      101. <IfModule mod_wrap.c>
      102. TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
      103. TCPAccessSyslogLevels info warn
      104. TCPServiceName ftpd
      105. </IfModule>
      Display All

      Any idea of what is going wrong ?
      Lian Li PC-V354 with Be Quiet fans | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9
    • sbocquet wrote:

      Any idea of what is going wrong ?
      Try other user than root by using privileges. Haven't used root login, but if that ain't working it might be worth looking at proftpd documentation, there must be something to correct in the mkconf script when using root account.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Hi Subzero,

      I've tried with another user (and root), and still cannot get the folder list.



      Is there a default folder to set in Filezilla when the connection start ?



      I have set proftpd to be in passive mode and permit root login.
      It seems to be some kind of folder rights to me, but cannot resolve it.

      Cheers,
      Lian Li PC-V354 with Be Quiet fans | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9
    • Tried remote yesterday's afternoon, then local yesterday's evening.

      That's not a firewall problem as there is a connection, and I opened the port 21 on my internet box to make the tests.
      Lian Li PC-V354 with Be Quiet fans | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9
    • sbocquet wrote:

      That's not a firewall problem as there is a connection, and I opened the port 21 on my internet box to make the tests.
      Passive range also needs to be forwarded also. Don't worry the server will open those ports on demand, but the firewall needs the rules there to allow incoming
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server