I installed OMV 5 fresh (with an old hard disk though) and I seem to have problems with the FTP server.
From what I understand the login works fine but it appears as if the default folder is the root one.
I therefore get an error message regarding the permissions:
Status: Connecting to 192.168.178.2:43210...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Server does not support non-ASCII characters.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (192,168,178,2,166,41).
Command: LIST
Response: 150 Opening BINARY mode data connection for file list
Response: 425 Unable to build data connection: operation not permitted
Error: Failed to retrieve directory listing
Display More
I try to connect locally in my LAN, no firewall configuration yet and - as mentioned - a fresh install.
I also tried to set the default root folder in the advanced settings
DefaultRoot /srv/dev-disk-by-label-Data/
But with no success.
The /etc/proftpd/proftpd.conf looks like this:
Include /etc/proftpd/modules.conf
Include /etc/proftpd/tls.conf
UseIPv6 on
ServerName OMV
ServerType standalone
DeferWelcome on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
DisplayChdir .message true
ListOptions "-l"
MaxInstances 30
DenyFilter \*.*/
User proftpd
Group nogroup
PersistentPasswd off
TimesGMT off
AllowOverwrite on
AuthOrder mod_auth_pam.c* mod_auth_unix.c
DefaultTransferMode ascii
Port 43210
TransferLog /var/log/proftpd/xferlog
IdentLookups on
UseReverseDNS off
TimeoutIdle 1200
TimeoutNoTransfer 600
TimeoutStalled 600
PassivePorts 43211 43220
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
MaxConnectionsPerHost 2
DisplayLogin /srv/ftp/welcome.msg
<Directory />
HideFiles (welcome.msg)
</Directory>
<Directory /Files>
Umask 000 000
<Limit ALL>
AllowUser OR tobi
DenyAll
</Limit>
<Limit READ DIRS>
AllowUser OR tobi
AllowGroup OR family
DenyAll
</Limit>
</Directory>
<IfModule mod_auth.c>
DefaultRoot /srv/ftp
MaxClients 5
MaxLoginAttempts 2
RequireValidShell off
# This option is useless because this is handled via the PAM
# pam_listfile.so module, so set it to 'off' by default.
UseFtpUsers off
</IfModule>
<IfModule mod_auth_pam.c>
AuthPAM on
AuthPAMConfig proftpd
</IfModule>
<IfModule mod_ban.c>
BanEngine off
BanControlsACLs all allow user root
BanLog /var/log/proftpd/ban.log
BanMessage Host %a has been banned
BanTable /run/proftpd/ban.tab
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_facl.c>
FACLEngine on
</IfModule>
<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
</IfModule>
LoadModule mod_vroot.c
<IfModule mod_vroot.c>
VRootEngine on
VRootLog /var/log/proftpd/vroot.log
VRootAlias "/srv/dev-disk-by-label-Data/Files/" "Files"
</IfModule>
<IfModule mod_wrap.c>
TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
TCPAccessSyslogLevels info warn
TCPServiceName ftpd
</IfModule>
Display More
Looks all fine to me so what am I missing?
Thanks a lot!
Tobias
#### EDIT ####
Looks like it works when I switch to SFTP. However the users can now traverse throught the whole filesystem. Before they saw only the shared folders. If there would be a way of changing this, I would also be fine with SFTP instead.