FTP: How to allow MDTM for vsFTPd 3.0.2 ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Serj14
Junior Member
Junior Member
Posts: 7
Joined: 2016-01-27, 11:41 UTC

FTP: How to allow MDTM for vsFTPd 3.0.2 ?

Post by *Serj14 »

Hi!
vsFTPd 3.0.2 announces MDTM support and I can set any date/time for the file.
I use command like this
MDTM 20111122095238 index.html (see log bellow)

ftp client does not recognize MDTM and can not set the date/time for uploaded files.

How to tell the ftp-client to use MDTM to set date/time for files?
Could you append this parameter as the connection option (advanced), please?
Some like this:
Save date/time
[ ] auto
[x] use MDTM
[ ] use SITE UTIME
[ ] ....

Regards
:)


----------
SSL: Libraries loaded OK! C:\totalcmd\libeay32.dll
.......
220 (vsFTPd 3.0.2)
AUTH TLS
234 Proceed with negotiation.
Cert subject: /CN=localhost.localdomain
Cert issuer: /CN=localhost.localdomain
USER **************
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
AUTH TLS
EPRT
EPSV
MDTM
PASV
PBSZ
PROT
REST STREAM
SIZE
TVFS
UTF8
211 End
HELP SITE
214-The following commands are recognized.
ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD
MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR
RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
XPWD XRMD
214 Help OK.
PBSZ 0
200 PBSZ set to 0.
PROT P
200 PROT now Private.
OPTS UTF8 ON
200 Always in UTF8 mode.
Connect ok!
PWD
257 "/"
Get directory
TYPE A
.....
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
MDTM 20111122095238 index.html
213 File modification time set.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It only announces MDTM for reading, not for writing. The announcement for writing would look like this:
MDTM YYYYMMDDHHMMSS
According to the FTP RFCs, MDTM is a read only function. The correct function for writing would be MFMT. Therefore you need to enable MDTM for writing manually in Total Commander.

Please add the following string to the file wcx_ftp.ini, section [General]:
SpecialFlags=4096

This will enable it for ALL servers. To enable it just for a specific server, add the line
SpecialFlags=4096
just to the section of that server.
Author of Total Commander
https://www.ghisler.com
Post Reply