Re: [Proftpd-user] .in. Files Not Cleaned Up Properly - HiddenStores

Matus UHLAR - fantomas <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
On 28.01.21 17:07, [email protected] wrote:
>Sure thing, here you go:

><Global>
>    AllowForeignAddress    on
>    DefaultRoot    ~
>    AllowOverwrite    on
>    AllowRetrieveRestart    on
>    PassivePorts    59000 60050
>    RequireValidShell    off
>    RootLogin    off
>    ShowSymlinks    on
>    HiddenStores on
>    TransferLog /var/log/proftpd/proftpd-transfer.log
>    DeleteAbortedStores on
>#<Directory /some/location/*>
>#        HideFiles (\.wmv|\.mp4|\.avi|\.mov|\.mkv|\.3gp|\.vob|\.asf|\.aiff|\.flv|\.f4v|\.f4p|\.f4a|\.f4b|\.ts|\.mpg|\.mpeg|\.ogv|\.ogg|\.ram|\.rv|\.rv9|\.webm)$
>#</Directory>
><Limit SITE_CHMOD>
>DenyALL
></Limit>
></Global>

well guess all those should apply. 

>I am confident the server hasn't crashed, as in hardware/actual server 
>dying or anything like that, this is a production server with 
>monitoring etc. on it...

I means that the handling server process crash, not OS or proftpd daemon
itself.

but we'll assume those are results of connection failures or drop, not a
result of ABOR command:

http://www.proftpd.org/docs/directives/linked/config_ref_DeleteAbortedStores.html

 The DeleteAbortedStores directive controls whether ProFTPD deletes partially
 uploaded HiddenStores files if the transfer is stopped via the ABOR command
 rather than a connection failure.

>>On 28.01.21 11:22, [email protected] wrote:
>>>However I have noticed on our FTP server, we have tons of 
>>>.in.FILENAME files hanging around on different user directories, 
>>>all with 0 KB filesize. Also, some of these go back to as old as 
>>>2019, throughout 2020... i.e. they're genuinely not in-progress 
>>>upload files.


>On 28/01/2021 16:17, Matus UHLAR - fantomas wrote:
>>these can be nested in <If* blocks, we need whole config
>>(can be redacted).

>>>Any idea why this is? What's the correct way to handle this? Do we 
>>>need to manually delete these files, and if so, why are they not 
>>>deleted by proftpd? Thanks for any info.
>>
>>it can also happen if ftp server crashes.



-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers.


_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.