Results 1 to 1 of 1
I solved this. It's an issue with the way Proftpd handles what they call glob characters...things like & and * and evidentally [ and ]. Basically they are not allowed ...
- 11-19-2009 #1Just Joined!
- Join Date
- Jun 2004
- Posts
- 23
[SOLVED] Proftpd can't list directory with "[" character HELP!
I solved this. It's an issue with the way Proftpd handles what they call glob characters...things like & and * and evidentally [ and ]. Basically they are not allowed for listing directories or they throw an error' I fixed it by adding the following to my config file. I tells the server not to advertise the MLSD listing service so the client will negotiate with the LIST command instead...it works for me with filezilla...the only one i've tested so far.
This has been submitted as a bug. I'm currently on 1.3.2 the stock version from unbuntu 9.10.
<IfModule mod_facts.c>
FactsAdvertise off
</IfModule>
Hi all,
I'm pretty new to using proftpd. I've had a devil of a time getting it running...and now I have some further issues.
I'm on a stock kernel for Ubuntu 9.10.
I setup with Gadmin using the vanilla configuations.
My first issue is that I can't start the server on port 21. It says that the port is busy, though I can't find anything using port 21.
I got around this by switching to port 2121, but now i've found that users can't get directly listing for any directory that includes the "[" character...I've tried messing with AllowFilter and DenyFilter, but they just hosed the entire server when i turned them on.
any help would be appreciated. here is my config file.
+++++++++++++++++++++++++++++++++++++++++++++
ServerType standalone
#AllowFilter [^*/A-Za-z0-9_.-]
DefaultServer on
Umask 022
ServerName "my.ftp.server "
ServerIdent on "FTP Server"
ServerAdmin email@example.org
IdentLookups off
UseReverseDNS off
Port 2121
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
DisplayChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 220
TransferRate STOR 250
TransferRate STOU 250
TransferRate APPE 250
SystemLog /var/log/secure
RequireValidShell off
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol SSLv23
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser chris
AllowUser carl
DenyALL
</Limit>
<Anonymous /home/FTP-shared>
User user1
Group friends
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite off
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous>
<Anonymous /home/FTP-shared>
User user2
Group friends
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous>
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++
thanksLast edited by Cr0n_J0b; 11-20-2009 at 03:12 PM. Reason: solved


Reply With Quote