Help - Search - Members - Calendar
Full Version: Proftpd Troubles: No Files Appear
Linuxhelp > Support > Technical Support
mwylde
I am running proftpd version 1.29 on SuSE linux 9. The server seeems to start and run fine, but when I try to connect to it it 'cannot recieve directory listing'. Yet after about 4-5 hours after turning on the server I suddenly can recieve directory listings. Here is my conf file:
CODE
ServerType standalone
DefaultServer on
Umask 022
ServerName "63.204.12.145"
ServerIdent on "AccordionSosftware FTPd v3"
Bind "63.204.12.145"
ServerAdmin webmaster@accordionsoftware.com
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49149 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 50
TimeoutNoTransfer 50
TimeoutIdle 50
User nobody
Group nobody
DirFakeUser off   nobody
DirFakeGroup off   nobody
DefaultTransferMode ascii
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores on
TransferRate RETR 1872
TransferRate STOR 1825
TransferRate STOU 1825
TransferRate APPE 1825
SystemLog /var/log/secure
#gp_random_username_length 6
#gp_random_password_length 6
#gp_randomize_case lower
#gp_useradd_root_path /usr/local/apache2
#gp_useradd_upload_path /usr/local/apache2
#gp_html_path /var/www/ftp.html
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine on
TLSRequired on
TLSVerifyClient on
TLSProtocol
TLSLog
TLSRSACertificateFile
</IfModule>
<Limit LOGIN>
 AllowUser test1
 AllowUser alex
 AllowUser jamie
 AllowUser micah
 DenyALL
</Limit>

<Anonymous /usr/local/apache2/htdocs>
User test1
Group test1
AnonRequirePassword on
MaxClients 350 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /usr/local/apache2>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  DELE  MKD XMKD  RMD XRMD  SITE_CHMOD  SITE_CHGRP  STAT  MDTM  PWD XPWD  SIZE  CWD XCWD  CDUP XCUP  SITE >
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY>
DenyAll
</Limit>
</Directory>
</Anonymous>

<Anonymous /usr/local/apache2/htdocs/>
User alex
Group alex
AnonRequirePassword on
MaxClients 50 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /usr/local/apache2/>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  DELE  MKD XMKD  RMD XRMD  SITE_CHMOD  SITE_CHGRP  STAT  MDTM  PWD XPWD  SIZE  CWD XCWD  CDUP XCUP  SITE >
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY>
DenyAll
</Limit>
</Directory>
</Anonymous>

<Anonymous /usr/local/apache2/htdocs/>
User jamie
Group jamie
AnonRequirePassword on
MaxClients 50 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /usr/local/apache2/*>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  DELE  MKD XMKD  RMD XRMD  SITE_CHMOD  SITE_CHGRP  STAT  MDTM  PWD XPWD  SIZE  CWD XCWD  CDUP XCUP  SITE >
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY>
DenyAll
</Limit>
</Directory>
</Anonymous>

<Anonymous /usr/local/apache2/htdocs>
User micah
Group micah
AnonRequirePassword on
MaxClients 50 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /usr/local/apache2/*>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  DELE  MKD XMKD  RMD XRMD  SITE_CHMOD  SITE_CHGRP  STAT  MDTM  PWD XPWD  SIZE  CWD XCWD  CDUP XCUP  SITE >
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY>
DenyAll
</Limit>
</Directory>
</Anonymous>

Does anyone know what might be the problem (or might this just be a part of ftp?)
Termina
A few possible things could have happened:

You most likely had a bad config file, and changed it. You did not restart proftpd after changing it, so it did not take effect. After restarting the computer, proftpd reads the new config file, and it works. happy.gif

Also (though less likely), it might have been a permission problem. Whatever directory (htdocs? or test1s home dir) might not have been readable by the user you logged in as, or by proftpd itself (perhaps, as stated before, because of a possible old config file that, when updated, proftpd was not restarted in order to read it).

Not sure why it would after restart if it was a permission problem, but then again I'm not sure if you have any crontab or bash scrips that change permission on startup or after a certain amount of time.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.