Hello everyone, I am having a problem on a server where I have removed vsftpd and installed proftpd. When logging in with filezilla or smartftp I get a directory listing error. I can however get a directory listing from a windows command prompt. I can not however write to the directory. Does anyone have an idea on this issue? Thanks in advance. *EDIT* I just realized I posted this in the wrong thread, my apologies. Please move it if needed.
Here is what filezilla displays when attempting to login: Status: Connecting to www.domain.com ... Status: Connected with www.domain.com. Waiting for welcome message... Response: 220 FTP Server ready. Command: USER username Response: 331 Password required for username. Command: PASS ****** Response: 230 User username logged in. Command: SYST Response: 215 UNIX Type: L8 Command: FEAT Response: 211-Features: Response: MDTM Response: REST STREAM Response: SIZE Response: 211 End Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 "/" is current directory. Command: TYPE A Response: 200 Type set to A Command: PASV Response: 227 Entering Passive Mode (206,55,121,22,195,232). Command: LIST Error: Transfer channel can't be opened. Reason: A socket operation was attempted to an unreachable host. Error: Could not retrieve directory listing Command: PWD Error: Timeout detected! ********************************************************* Proftpd configuration check: [root@server1 etc]# proftpd -td5 Checking syntax of configuration file - mod_tls/2.1.1: using OpenSSL 0.9.7a Feb 19 2003 - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock' - parsing '/etc/proftpd.conf' configuration - IPv6 getaddrinfo 'faded' error: Name or service not known server1 - server1 - Config for ProFTPD server: server1 - ServerIdent server1 - DefaultServer server1 - AccessGrantMsg server1 - DeferWelcome server1 - DefaultRoot server1 - AuthPAMConfig server1 - AuthOrder server1 - IdentLookups server1 - Umask server1 - ListOptions server1 - AllowRetrieveRestart server1 - AllowStoreRestart server1 - UserID server1 - UserName server1 - GroupID server1 - GroupName server1 - UseSendfile server1 - Limit server1 - AllowAll server1 - AllowOverwrite server1 - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock' Syntax check complete.
when tailing the messages log I get this when attempting to log in: Feb 19 23:00:00 server1 proftpd[20862]: server1 :ffff:xx.xx.xx.xx[::ffff:xx.xx.xx.xx]) - FTP session opened. Feb 19 23:00:00 server1 proftpd(pam_unix)[20862]: session opened for user username by (uid=0)
Please change the FTP mode in filezilla from passive to active or configure your firewall / router to allow passive FTP.
yes, that would do it, thanks till. Just when I thought I was getting somewhere learning linux something so easy is overlooked. I set my ftp client to active, it listed the directory. Thanks till. I beat myself over the head for a week on this one