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

"[email protected]" <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
Thanks for your reply.

Sure thing, here you go:

$ sudo cat /etc/proftpd.conf
ServerName    FTP
ServerIdent    on "FTP Server ready."
ServerAdmin    ftpadmin@localhost
ServerType    standalone
Port    21
DefaultServer    on
IdentLookups    off
UseReverseDNS    off
User    nobody
Group    nobody
Umask    022 002
ListOptions    ""
AllowOverwrite    on
MaxClients    250 "Sorry, max %m users -- try again later"
MaxClientsPerHost    30 "Sorry, max %m users -- try again later"
MaxClientsPerUser    100 "Sorry, maximum concurrent connections per user 
reached"
MaxInstances    250
MaxLoginAttempts    3
LoadModule mod_sftp.c
SystemLog /var/log/proftpd/proftpd-system.log
TimeoutIdle    900
TimeoutNoTransfer    7200
TimeoutStalled    7200
TimesGMT    off

LogFormat         userlog   "%h %u %t %F %s %b %T %{protocol} 
%{transfer-millisecs} %{transfer-status} %{transfer-failure}"
ExtendedLog        /var/log/proftpd/extended.log WRITE,READ userlog

MasqueradeAddress    my.dns.tld
<limit EPSV>
denyall
</limit>
<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>
<IfModule mod_sftp.c>
  <VirtualHost 0.0.0.0>
    # Configure the server to listen on the normal SSH2 port, port 22
    Port 22
    SFTPEngine on
    SFTPLog /var/log/proftpd/sftp.log
    AllowOverwrite    on
    # Configure both the RSA and DSA host keys, using the same host key
    # files that OpenSSH uses.
    SFTPHostKey /etc/ssh/ssh_host_rsa_key-old
    SFTPHostKey /etc/ssh/ssh_host_dsa_key-old
    SFTPAuthorizedUserKeys file:/some/location/%u
    # Enable compression
    SFTPCompression delayed
    ServerIdent off
    DefaultRoot    ~
    SFTPOptions IgnoreSFTPUploadPerms IgnoreSCPUploadPerms
  </VirtualHost>
</IfModule>




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...

[email protected]

On 28/01/2021 16:17, Matus UHLAR - fantomas wrote:
> On 28.01.21 11:22, [email protected] wrote:
>> I have pretty much check most recent threads I could find here or in 
>> on Google about ProFTPd and HiddenStores directive, and the default 
>> behavior.
>>
>> 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.
>
>
>> $ sudo cat /etc/proftpd.conf | grep -i DeleteAbortedStores
>>     DeleteAbortedStores on
>>
>> $ sudo cat /etc/proftpd.conf | grep -i HiddenStores
>>     HiddenStores on
>
> 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.
>

_______________________________________________
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.