You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Sachin Shetty <ss...@egnyte.com> on 2011/10/09 00:02:46 UTC

Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Hi,

 

When logging in to apache ftp server I see this:

 

Response:                      220 Service ready for new user.

Command:                      USER sshetty@localhost7000

Response:                      331 User name okay, need password for
sshetty@localhost7000.

Command:                      PASS *********

Response:                      230 User logged in, proceed.

Command:                      OPTS UTF8 ON

Response:                      200 Command OPTS okay.

Command:                    OPTS MLST size;modify;type;

Response:                      200 Command OPTS okay.

Status:                           Connected

 

I guess the OPTS MLST command forces the Apache FTP Server to not send perms
and owner info. 

 

Any idea what prompts FileZilla to send the MSLT command? FileZilla  on an
old pureftpd server works fine?

 

 

Thanks

Sachin


RE: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by Sachin Shetty <ss...@egnyte.com>.
So we do set the permission and owner correctly and we do see it in Winscp
which uses LIST. 

But in FileZilla, something prompts file zilla to send a "OPTS MLST
size;modify;type;" which eventually causes apache ftp server to not send
perms.

-----Original Message-----
From: Niklas Gustavsson [mailto:niklas@protocol7.com] 
Sent: Monday, October 10, 2011 2:15 PM
To: ftpserver-users@mina.apache.org
Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
perms and owners

On Mon, Oct 10, 2011 at 8:58 AM, Sachin Shetty <ss...@egnyte.com> wrote:
> I understand that java cannot, but we have a custom FileSystemView and
> FtpFile object where we set the owner and the read write flags correctly -
> so shouldn't it work then?

It should, and if it doesn't then that's a bug.

> How do I remove the MLST comand from FEAT, is it a config or do I need to
> change the code?

You'll need to hack your own message file and configure FtpServer to use it:
http://mina.apache.org/ftpserver/messages.html

/niklas


Re: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Mon, Oct 10, 2011 at 8:58 AM, Sachin Shetty <ss...@egnyte.com> wrote:
> I understand that java cannot, but we have a custom FileSystemView and
> FtpFile object where we set the owner and the read write flags correctly -
> so shouldn't it work then?

It should, and if it doesn't then that's a bug.

> How do I remove the MLST comand from FEAT, is it a config or do I need to
> change the code?

You'll need to hack your own message file and configure FtpServer to use it:
http://mina.apache.org/ftpserver/messages.html

/niklas

RE: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by Sachin Shetty <ss...@egnyte.com>.
Hi Niklas,

I understand that java cannot, but we have a custom FileSystemView and
FtpFile object where we set the owner and the read write flags correctly -
so shouldn't it work then?

How do I remove the MLST comand from FEAT, is it a config or do I need to
change the code?

Thanks
Sachin

-----Original Message-----
From: Niklas Gustavsson [mailto:niklas@protocol7.com] 
Sent: Monday, October 10, 2011 12:16 PM
To: ftpserver-users@mina.apache.org
Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
perms and owners

On Mon, Oct 10, 2011 at 5:42 AM, Sachin Shetty <ss...@egnyte.com> wrote:
> Now I see the perms as "elfpcm" for all the files

Please note that FtpServer will not return corrent owner and file
permissions for any command, simple as there has been no portable way
to do this in Java. With Java 7 this changes and we should look into
implementing it.

> Is there a way to configure Apache FTP Server to disable MS* commands so
> that FileZilla would fall back to LIST?

You could try to remove the MLST command from the 211.FEAT message.

/niklas


Re: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Mon, Oct 10, 2011 at 5:42 AM, Sachin Shetty <ss...@egnyte.com> wrote:
> Now I see the perms as "elfpcm" for all the files

Please note that FtpServer will not return corrent owner and file
permissions for any command, simple as there has been no portable way
to do this in Java. With Java 7 this changes and we should look into
implementing it.

> Is there a way to configure Apache FTP Server to disable MS* commands so
> that FileZilla would fall back to LIST?

You could try to remove the MLST command from the 211.FEAT message.

/niklas

RE: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by Sachin Shetty <ss...@egnyte.com>.
I tried the custom command thing in file zilla

Command:	OPTS MLST size;modify;type;perm
Response:	200 Command OPTS okay.
Status:	Retrieving directory listing...
Command:	CWD /
Response:	250 Directory changed to /
Command:	PWD
Response:	257 "/" is current directory.
Command:	TYPE I
Response:	200 Command TYPE okay.
Command:	PASV
Response:	227 Entering Passive Mode (127,0,0,1,207,242)
Command:	MLSD
Response:	150 File status okay; about to open data connection.
Response:	226 Closing data connection.
Status:	Directory listing successful

Now I see the perms as "elfpcm" for all the files

Is there a way to configure Apache FTP Server to disable MS* commands so
that FileZilla would fall back to LIST?


Thanks
Sachin


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Monday, October 10, 2011 9:00 AM
To: ftpserver-users@mina.apache.org
Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
perms and owners

On 10 October 2011 04:13, Sachin Shetty <ss...@egnyte.com> wrote:
> Hi,
>
> Here is the one for apache ftp server:
>
> Status: Resolving address of localhost
> Status: Connecting to [::1]:2221...
> Status: Connection attempt failed with "ECONNREFUSED - Connection refused
by
> server", trying next address.
> Status: Connecting to 127.0.0.1:2221...
> Status: Connection established, waiting for welcome message...
> Response:       220 Service ready for new user.
> Command:        USER sshetty@localhost7000
> Response:       331 User name okay, need password for
sshetty@localhost7000.
> Command:        PASS *********
> Response:       230 User logged in, proceed.
> Command:        SYST
> Response:       215 UNIX Type: Apache FtpServer
> Command:        FEAT
> Response:       211-Extensions supported
> Response:        SIZE
> Response:        MDTM
> Response:        REST STREAM
> Response:        LANG en;zh-tw;ja;is
> Response:        MLST Size;Modify;Type;Perm

Perm is supported

> Response:        AUTH SSL
> Response:        AUTH TLS
> Response:        MODE Z
> Response:        UTF8
> Response:        TVFS
> Response:        MD5
> Response:        MMD5
> Response:        MFMT
> Response:       211 End
> Command:        OPTS UTF8 ON
> Response:       200 Command OPTS okay.
> Command:        OPTS MLST size;modify;type;

Yet FileZilla does not request perm

That could be a FileZilla bug.

It does explain why Apache Ftp Server does not send perms.

If you can force FileZilla to send particular MLST options, you could
see if that allows the perms to be returned.

> Response:       200 Command OPTS okay.
> Status: Connected
> Status: Retrieving directory listing...
> Command:        PWD
> Response:       257 "/" is current directory.
> Command:        TYPE I
> Response:       200 Command TYPE okay.
> Command:        PASV
> Response:       227 Entering Passive Mode (127,0,0,1,207,36)
> Command:        MLSD
> Response:       150 File status okay; about to open data connection.
> Response:       226 Closing data connection.
> Status: Directory listing successful
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Monday, October 10, 2011 8:14 AM
> To: ftpserver-users@mina.apache.org
> Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
> perms and owners
>
> On 9 October 2011 14:41, Sachin Shetty <ss...@egnyte.com> wrote:
>> Here is the listing on the pureftpd
>>
>> Command:        USER sshetty|egnyte
>> Response:       331 User sshetty|egnyte OK. Password required
>> Command:        PASS .............................
>> Response:       230-User sshetty|egnyte has group access to:  1000
>> ftp-paid   100
>> Response:       230 OK. Current directory is /
>> Command:        SYST
>> Response:       215 UNIX Type: L8
>> Command:        FEAT
>> Response:       211-Extensions supported:
>> Response:        EPRT
>> Response:        IDLE
>> Response:        MDTM
>> Response:        SIZE
>> Response:        REST STREAM
>> Response:        MLST
>> type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
>> Response:        MLSD
>> Response:        XDBG
>> Response:        AUTH TLS
>> Response:        PBSZ
>> Response:        PROT
>> Response:        UTF8
>> Response:        TVFS
>> Response:        ESTA
>> Response:        PASV
>> Response:        EPSV
>> Response:        SPSV
>> Response:       211 End.
>> Command:        OPTS UTF8 ON
>> Response:       200 OK, UTF-8 enabled
>> Status: Connected
>> Status: Retrieving directory listing...
>> Command:        PWD
>> Response:       257 "/" is your current location
>> Command:        TYPE I
>> Response:       200 TYPE is now 8-bit binary
>> Command:        PASV
>> Response:       227 Entering Passive Mode (208,83,106,12,78,252)
>> Command:        MLSD
>> Response:       150 Accepted data connection
>> Response:       226-Options: -a -l
>> Response:       226 7 matches total
>> Status: Directory listing successful
>
> OK, so what is the equivalent listing for Apache Ftp Server?
>
> The listing you provided previously does not show the SYST command, so
> AFAICT cannot be the full listing unless you have changed the settings
> for the Apache connection.
>
>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com]
>> Sent: Sunday, October 09, 2011 5:54 PM
>> To: ftpserver-users@mina.apache.org
>> Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
>> perms and owners
>>
>> On 8 October 2011 23:02, Sachin Shetty <ss...@egnyte.com> wrote:
>>> Hi,
>>>
>>>
>>>
>>> When logging in to apache ftp server I see this:
>>>
>>>
>>>
>>> Response:                      220 Service ready for new user.
>>>
>>> Command:                      USER sshetty@localhost7000
>>>
>>> Response:                      331 User name okay, need password for
>>> sshetty@localhost7000.
>>>
>>> Command:                      PASS *********
>>>
>>> Response:                      230 User logged in, proceed.
>>>
>>> Command:                      OPTS UTF8 ON
>>>
>>> Response:                      200 Command OPTS okay.
>>>
>>> Command:                    OPTS MLST size;modify;type;
>>>
>>> Response:                      200 Command OPTS okay.
>>>
>>> Status:                           Connected
>>>
>>>
>>>
>>> I guess the OPTS MLST command forces the Apache FTP Server to not send
>> perms
>>> and owner info.
>>>
>>>
>>>
>>> Any idea what prompts FileZilla to send the MSLT command? FileZilla  on
> an
>>> old pureftpd server works fine?
>>
>> What is the corresponding sequence when running FileZilla against
> pureftpd?
>>
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Sachin
>>>
>>>
>>
>>
>
>


Re: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by sebb <se...@gmail.com>.
On 10 October 2011 04:13, Sachin Shetty <ss...@egnyte.com> wrote:
> Hi,
>
> Here is the one for apache ftp server:
>
> Status: Resolving address of localhost
> Status: Connecting to [::1]:2221...
> Status: Connection attempt failed with "ECONNREFUSED - Connection refused by
> server", trying next address.
> Status: Connecting to 127.0.0.1:2221...
> Status: Connection established, waiting for welcome message...
> Response:       220 Service ready for new user.
> Command:        USER sshetty@localhost7000
> Response:       331 User name okay, need password for sshetty@localhost7000.
> Command:        PASS *********
> Response:       230 User logged in, proceed.
> Command:        SYST
> Response:       215 UNIX Type: Apache FtpServer
> Command:        FEAT
> Response:       211-Extensions supported
> Response:        SIZE
> Response:        MDTM
> Response:        REST STREAM
> Response:        LANG en;zh-tw;ja;is
> Response:        MLST Size;Modify;Type;Perm

Perm is supported

> Response:        AUTH SSL
> Response:        AUTH TLS
> Response:        MODE Z
> Response:        UTF8
> Response:        TVFS
> Response:        MD5
> Response:        MMD5
> Response:        MFMT
> Response:       211 End
> Command:        OPTS UTF8 ON
> Response:       200 Command OPTS okay.
> Command:        OPTS MLST size;modify;type;

Yet FileZilla does not request perm

That could be a FileZilla bug.

It does explain why Apache Ftp Server does not send perms.

If you can force FileZilla to send particular MLST options, you could
see if that allows the perms to be returned.

> Response:       200 Command OPTS okay.
> Status: Connected
> Status: Retrieving directory listing...
> Command:        PWD
> Response:       257 "/" is current directory.
> Command:        TYPE I
> Response:       200 Command TYPE okay.
> Command:        PASV
> Response:       227 Entering Passive Mode (127,0,0,1,207,36)
> Command:        MLSD
> Response:       150 File status okay; about to open data connection.
> Response:       226 Closing data connection.
> Status: Directory listing successful
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Monday, October 10, 2011 8:14 AM
> To: ftpserver-users@mina.apache.org
> Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
> perms and owners
>
> On 9 October 2011 14:41, Sachin Shetty <ss...@egnyte.com> wrote:
>> Here is the listing on the pureftpd
>>
>> Command:        USER sshetty|egnyte
>> Response:       331 User sshetty|egnyte OK. Password required
>> Command:        PASS .............................
>> Response:       230-User sshetty|egnyte has group access to:  1000
>> ftp-paid   100
>> Response:       230 OK. Current directory is /
>> Command:        SYST
>> Response:       215 UNIX Type: L8
>> Command:        FEAT
>> Response:       211-Extensions supported:
>> Response:        EPRT
>> Response:        IDLE
>> Response:        MDTM
>> Response:        SIZE
>> Response:        REST STREAM
>> Response:        MLST
>> type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
>> Response:        MLSD
>> Response:        XDBG
>> Response:        AUTH TLS
>> Response:        PBSZ
>> Response:        PROT
>> Response:        UTF8
>> Response:        TVFS
>> Response:        ESTA
>> Response:        PASV
>> Response:        EPSV
>> Response:        SPSV
>> Response:       211 End.
>> Command:        OPTS UTF8 ON
>> Response:       200 OK, UTF-8 enabled
>> Status: Connected
>> Status: Retrieving directory listing...
>> Command:        PWD
>> Response:       257 "/" is your current location
>> Command:        TYPE I
>> Response:       200 TYPE is now 8-bit binary
>> Command:        PASV
>> Response:       227 Entering Passive Mode (208,83,106,12,78,252)
>> Command:        MLSD
>> Response:       150 Accepted data connection
>> Response:       226-Options: -a -l
>> Response:       226 7 matches total
>> Status: Directory listing successful
>
> OK, so what is the equivalent listing for Apache Ftp Server?
>
> The listing you provided previously does not show the SYST command, so
> AFAICT cannot be the full listing unless you have changed the settings
> for the Apache connection.
>
>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com]
>> Sent: Sunday, October 09, 2011 5:54 PM
>> To: ftpserver-users@mina.apache.org
>> Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
>> perms and owners
>>
>> On 8 October 2011 23:02, Sachin Shetty <ss...@egnyte.com> wrote:
>>> Hi,
>>>
>>>
>>>
>>> When logging in to apache ftp server I see this:
>>>
>>>
>>>
>>> Response:                      220 Service ready for new user.
>>>
>>> Command:                      USER sshetty@localhost7000
>>>
>>> Response:                      331 User name okay, need password for
>>> sshetty@localhost7000.
>>>
>>> Command:                      PASS *********
>>>
>>> Response:                      230 User logged in, proceed.
>>>
>>> Command:                      OPTS UTF8 ON
>>>
>>> Response:                      200 Command OPTS okay.
>>>
>>> Command:                    OPTS MLST size;modify;type;
>>>
>>> Response:                      200 Command OPTS okay.
>>>
>>> Status:                           Connected
>>>
>>>
>>>
>>> I guess the OPTS MLST command forces the Apache FTP Server to not send
>> perms
>>> and owner info.
>>>
>>>
>>>
>>> Any idea what prompts FileZilla to send the MSLT command? FileZilla  on
> an
>>> old pureftpd server works fine?
>>
>> What is the corresponding sequence when running FileZilla against
> pureftpd?
>>
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Sachin
>>>
>>>
>>
>>
>
>

RE: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by Sachin Shetty <ss...@egnyte.com>.
Hi,

Here is the one for apache ftp server:

Status:	Resolving address of localhost
Status:	Connecting to [::1]:2221...
Status:	Connection attempt failed with "ECONNREFUSED - Connection refused by
server", trying next address.
Status:	Connecting to 127.0.0.1:2221...
Status:	Connection established, waiting for welcome message...
Response:	220 Service ready for new user.
Command:	USER sshetty@localhost7000
Response:	331 User name okay, need password for sshetty@localhost7000.
Command:	PASS *********
Response:	230 User logged in, proceed.
Command:	SYST
Response:	215 UNIX Type: Apache FtpServer
Command:	FEAT
Response:	211-Extensions supported
Response:	 SIZE
Response:	 MDTM
Response:	 REST STREAM
Response:	 LANG en;zh-tw;ja;is
Response:	 MLST Size;Modify;Type;Perm
Response:	 AUTH SSL
Response:	 AUTH TLS
Response:	 MODE Z
Response:	 UTF8
Response:	 TVFS
Response:	 MD5
Response:	 MMD5
Response:	 MFMT
Response:	211 End
Command:	OPTS UTF8 ON
Response:	200 Command OPTS okay.
Command:	OPTS MLST size;modify;type;
Response:	200 Command OPTS okay.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is current directory.
Command:	TYPE I
Response:	200 Command TYPE okay.
Command:	PASV
Response:	227 Entering Passive Mode (127,0,0,1,207,36)
Command:	MLSD
Response:	150 File status okay; about to open data connection.
Response:	226 Closing data connection.
Status:	Directory listing successful


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Monday, October 10, 2011 8:14 AM
To: ftpserver-users@mina.apache.org
Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
perms and owners

On 9 October 2011 14:41, Sachin Shetty <ss...@egnyte.com> wrote:
> Here is the listing on the pureftpd
>
> Command:        USER sshetty|egnyte
> Response:       331 User sshetty|egnyte OK. Password required
> Command:        PASS .............................
> Response:       230-User sshetty|egnyte has group access to:  1000
> ftp-paid   100
> Response:       230 OK. Current directory is /
> Command:        SYST
> Response:       215 UNIX Type: L8
> Command:        FEAT
> Response:       211-Extensions supported:
> Response:        EPRT
> Response:        IDLE
> Response:        MDTM
> Response:        SIZE
> Response:        REST STREAM
> Response:        MLST
> type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
> Response:        MLSD
> Response:        XDBG
> Response:        AUTH TLS
> Response:        PBSZ
> Response:        PROT
> Response:        UTF8
> Response:        TVFS
> Response:        ESTA
> Response:        PASV
> Response:        EPSV
> Response:        SPSV
> Response:       211 End.
> Command:        OPTS UTF8 ON
> Response:       200 OK, UTF-8 enabled
> Status: Connected
> Status: Retrieving directory listing...
> Command:        PWD
> Response:       257 "/" is your current location
> Command:        TYPE I
> Response:       200 TYPE is now 8-bit binary
> Command:        PASV
> Response:       227 Entering Passive Mode (208,83,106,12,78,252)
> Command:        MLSD
> Response:       150 Accepted data connection
> Response:       226-Options: -a -l
> Response:       226 7 matches total
> Status: Directory listing successful

OK, so what is the equivalent listing for Apache Ftp Server?

The listing you provided previously does not show the SYST command, so
AFAICT cannot be the full listing unless you have changed the settings
for the Apache connection.


> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Sunday, October 09, 2011 5:54 PM
> To: ftpserver-users@mina.apache.org
> Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
> perms and owners
>
> On 8 October 2011 23:02, Sachin Shetty <ss...@egnyte.com> wrote:
>> Hi,
>>
>>
>>
>> When logging in to apache ftp server I see this:
>>
>>
>>
>> Response:                      220 Service ready for new user.
>>
>> Command:                      USER sshetty@localhost7000
>>
>> Response:                      331 User name okay, need password for
>> sshetty@localhost7000.
>>
>> Command:                      PASS *********
>>
>> Response:                      230 User logged in, proceed.
>>
>> Command:                      OPTS UTF8 ON
>>
>> Response:                      200 Command OPTS okay.
>>
>> Command:                    OPTS MLST size;modify;type;
>>
>> Response:                      200 Command OPTS okay.
>>
>> Status:                           Connected
>>
>>
>>
>> I guess the OPTS MLST command forces the Apache FTP Server to not send
> perms
>> and owner info.
>>
>>
>>
>> Any idea what prompts FileZilla to send the MSLT command? FileZilla  on
an
>> old pureftpd server works fine?
>
> What is the corresponding sequence when running FileZilla against
pureftpd?
>
>>
>>
>>
>>
>> Thanks
>>
>> Sachin
>>
>>
>
>


Re: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by sebb <se...@gmail.com>.
On 9 October 2011 14:41, Sachin Shetty <ss...@egnyte.com> wrote:
> Here is the listing on the pureftpd
>
> Command:        USER sshetty|egnyte
> Response:       331 User sshetty|egnyte OK. Password required
> Command:        PASS .............................
> Response:       230-User sshetty|egnyte has group access to:  1000
> ftp-paid   100
> Response:       230 OK. Current directory is /
> Command:        SYST
> Response:       215 UNIX Type: L8
> Command:        FEAT
> Response:       211-Extensions supported:
> Response:        EPRT
> Response:        IDLE
> Response:        MDTM
> Response:        SIZE
> Response:        REST STREAM
> Response:        MLST
> type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
> Response:        MLSD
> Response:        XDBG
> Response:        AUTH TLS
> Response:        PBSZ
> Response:        PROT
> Response:        UTF8
> Response:        TVFS
> Response:        ESTA
> Response:        PASV
> Response:        EPSV
> Response:        SPSV
> Response:       211 End.
> Command:        OPTS UTF8 ON
> Response:       200 OK, UTF-8 enabled
> Status: Connected
> Status: Retrieving directory listing...
> Command:        PWD
> Response:       257 "/" is your current location
> Command:        TYPE I
> Response:       200 TYPE is now 8-bit binary
> Command:        PASV
> Response:       227 Entering Passive Mode (208,83,106,12,78,252)
> Command:        MLSD
> Response:       150 Accepted data connection
> Response:       226-Options: -a -l
> Response:       226 7 matches total
> Status: Directory listing successful

OK, so what is the equivalent listing for Apache Ftp Server?

The listing you provided previously does not show the SYST command, so
AFAICT cannot be the full listing unless you have changed the settings
for the Apache connection.


> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Sunday, October 09, 2011 5:54 PM
> To: ftpserver-users@mina.apache.org
> Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
> perms and owners
>
> On 8 October 2011 23:02, Sachin Shetty <ss...@egnyte.com> wrote:
>> Hi,
>>
>>
>>
>> When logging in to apache ftp server I see this:
>>
>>
>>
>> Response:                      220 Service ready for new user.
>>
>> Command:                      USER sshetty@localhost7000
>>
>> Response:                      331 User name okay, need password for
>> sshetty@localhost7000.
>>
>> Command:                      PASS *********
>>
>> Response:                      230 User logged in, proceed.
>>
>> Command:                      OPTS UTF8 ON
>>
>> Response:                      200 Command OPTS okay.
>>
>> Command:                    OPTS MLST size;modify;type;
>>
>> Response:                      200 Command OPTS okay.
>>
>> Status:                           Connected
>>
>>
>>
>> I guess the OPTS MLST command forces the Apache FTP Server to not send
> perms
>> and owner info.
>>
>>
>>
>> Any idea what prompts FileZilla to send the MSLT command? FileZilla  on an
>> old pureftpd server works fine?
>
> What is the corresponding sequence when running FileZilla against pureftpd?
>
>>
>>
>>
>>
>> Thanks
>>
>> Sachin
>>
>>
>
>

RE: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by Sachin Shetty <ss...@egnyte.com>.
Here is the listing on the pureftpd

Command:	USER sshetty|egnyte
Response:	331 User sshetty|egnyte OK. Password required
Command:	PASS .............................
Response:	230-User sshetty|egnyte has group access to:  1000
ftp-paid   100       
Response:	230 OK. Current directory is /
Command:	SYST
Response:	215 UNIX Type: L8
Command:	FEAT
Response:	211-Extensions supported:
Response:	 EPRT
Response:	 IDLE
Response:	 MDTM
Response:	 SIZE
Response:	 REST STREAM
Response:	 MLST
type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:	 MLSD
Response:	 XDBG
Response:	 AUTH TLS
Response:	 PBSZ
Response:	 PROT
Response:	 UTF8
Response:	 TVFS
Response:	 ESTA
Response:	 PASV
Response:	 EPSV
Response:	 SPSV
Response:	211 End.
Command:	OPTS UTF8 ON
Response:	200 OK, UTF-8 enabled
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is your current location
Command:	TYPE I
Response:	200 TYPE is now 8-bit binary
Command:	PASV
Response:	227 Entering Passive Mode (208,83,106,12,78,252)
Command:	MLSD
Response:	150 Accepted data connection
Response:	226-Options: -a -l 
Response:	226 7 matches total
Status:	Directory listing successful

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Sunday, October 09, 2011 5:54 PM
To: ftpserver-users@mina.apache.org
Subject: Re: Filezilla sends OPTS MLST size;modify;type; causing missing
perms and owners

On 8 October 2011 23:02, Sachin Shetty <ss...@egnyte.com> wrote:
> Hi,
>
>
>
> When logging in to apache ftp server I see this:
>
>
>
> Response:                      220 Service ready for new user.
>
> Command:                      USER sshetty@localhost7000
>
> Response:                      331 User name okay, need password for
> sshetty@localhost7000.
>
> Command:                      PASS *********
>
> Response:                      230 User logged in, proceed.
>
> Command:                      OPTS UTF8 ON
>
> Response:                      200 Command OPTS okay.
>
> Command:                    OPTS MLST size;modify;type;
>
> Response:                      200 Command OPTS okay.
>
> Status:                           Connected
>
>
>
> I guess the OPTS MLST command forces the Apache FTP Server to not send
perms
> and owner info.
>
>
>
> Any idea what prompts FileZilla to send the MSLT command? FileZilla  on an
> old pureftpd server works fine?

What is the corresponding sequence when running FileZilla against pureftpd?

>
>
>
>
> Thanks
>
> Sachin
>
>


Re: Filezilla sends OPTS MLST size;modify;type; causing missing perms and owners

Posted by sebb <se...@gmail.com>.
On 8 October 2011 23:02, Sachin Shetty <ss...@egnyte.com> wrote:
> Hi,
>
>
>
> When logging in to apache ftp server I see this:
>
>
>
> Response:                      220 Service ready for new user.
>
> Command:                      USER sshetty@localhost7000
>
> Response:                      331 User name okay, need password for
> sshetty@localhost7000.
>
> Command:                      PASS *********
>
> Response:                      230 User logged in, proceed.
>
> Command:                      OPTS UTF8 ON
>
> Response:                      200 Command OPTS okay.
>
> Command:                    OPTS MLST size;modify;type;
>
> Response:                      200 Command OPTS okay.
>
> Status:                           Connected
>
>
>
> I guess the OPTS MLST command forces the Apache FTP Server to not send perms
> and owner info.
>
>
>
> Any idea what prompts FileZilla to send the MSLT command? FileZilla  on an
> old pureftpd server works fine?

What is the corresponding sequence when running FileZilla against pureftpd?

>
>
>
>
> Thanks
>
> Sachin
>
>