Problem when listing

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
crreina
500 Command not understood
Posts: 5
Joined: 2022-09-20 12:48
First name: Cristobal
Last name: Rodriguez

Problem when listing

#1 Post by crreina » 2022-09-21 06:05

Hi, I have just set up an FTP server (ProFTPD and Microsoft Active Directory authentication) on Ubuntu 20.04.4 LTS.

The problem arises when I use from windows filezilla client, it does not list the directories or files that correspond to the group "domain users", I have activated the debugger and when listing it shows all the directories correctly but not in the visual.

If I assign a group without spaces to these files or directories, they are displayed.

Can this be solved by configuring the FTP server?

I attach an example image
Error listing files
Error listing files
error listing.png (49.96 KiB) Viewed 6141 times

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Problem when listing

#2 Post by botg » 2022-09-21 07:17

This is a well-known limitation of using LIST, which sends directory listings in an unspecified, human-readable format that differs from server to server. Due to ambiguities it is not possible to parse it in all circumstances.

Please switch to a modern FTP server supporting MLSD as defined in RFC 3659. Listings returned by MLSD have been designed to be machine-readable.

crreina
500 Command not understood
Posts: 5
Joined: 2022-09-20 12:48
First name: Cristobal
Last name: Rodriguez

Re: Problem when listing

#3 Post by crreina » 2022-09-21 08:58

Thank you for your response,

Proftpd is supposed to support MLSD and MLST.

Some alternative ftp server for linux?

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Problem when listing

#4 Post by botg » 2022-09-21 09:47

I might be ever so slightly biased, but may I recommend FileZilla Server?

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: Problem when listing

#5 Post by boco » 2022-09-21 15:20

Proftpd is supposed to support MLSD and MLST.
Yes, but is it enabled in your server configuration? Was called "facts" or similar IIRC.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

crreina
500 Command not understood
Posts: 5
Joined: 2022-09-20 12:48
First name: Cristobal
Last name: Rodriguez

Re: Problem when listing

#6 Post by crreina » 2022-09-23 07:42

Well,I have tried enabling/disabling the following the following to your proftpd.conf:

<IfModule mod_facts.c>
FactsAdvertise off
</IfModule>

but it still doesn't display everything, according to the following reference even if I disable MLSD mode so that the old LIST commands are used, filezilla does not.

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: Problem when listing

#7 Post by boco » 2022-09-24 02:10

Your screenshot above shows that LIST is being used. LIST = bad, MLSD = good. You want MSLD, not list.

Facts advertising (in FEAT response) should thus be on. If that doesn't change anything, make sure your server binary has been built (compiled) with mod_facts support included.
Note that FileZilla will only issue the FEAT command during the first connection to the server. So, if you change anything in the server configs, you MUST also close and reopen FileZilla.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

crreina
500 Command not understood
Posts: 5
Joined: 2022-09-20 12:48
First name: Cristobal
Last name: Rodriguez

Re: Problem when listing

#8 Post by crreina » 2022-09-27 11:20

thanks for your help, try to compile proftd by adding the mod_facts module. And it didn't work either. I kept digging and found the solution, you have to configure the ListOptions parameter in proftpd.conf. In my case it would be using ListOptions "-n". Here is a link with all the available options.

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: Problem when listing

#9 Post by boco » 2022-09-27 23:32

You should also include "-a", as an FTP server should never hide any files from users.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

crreina
500 Command not understood
Posts: 5
Joined: 2022-09-20 12:48
First name: Cristobal
Last name: Rodriguez

Re: Problem when listing

#10 Post by crreina » 2022-10-04 06:49

ok, thanks for everything

Post Reply