Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th April 2007, 21:41
wapa17 wapa17 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Question FTP doesnt work more..

I installed ISPConfig in November 2006 (Mandrake 2006 - perfect setup).
Well - some mail and DNS related issues but this has been solved manually ;-)

Then I decided to install a CRON-job to look for updates automatically....and here began the trouble: I cannot login into FTP more (neither via ISPConfig-Admin nor with a FTP-Client).
It has something to do with the "auto-update" (I have it disabled now).
Well, it looks like if I have to downgrade the ProFTP.

My question is: HOW to downgrade without to break the ISPConfig - configuration ?
Reply With Quote
Sponsored Links
  #2  
Old 6th April 2007, 12:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

I think its not nescessary to downgrade proftpd as all proftpd versions should be compatible with ISPConfig.

Please have a look if your last proftpd update has replaced the proftpd.conf file and left a copy of the old configuration in the same directory which you can compare to the new config.

Please post the output of:

netstat -tap | grep ftp

and

ps aux | grep ftp
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th April 2007, 17:08
wapa17 wapa17 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Default

Hi Till,

thanks for your answer.
The outputs are:
--------------- cut -----------------
> netstat -tap | grep ftp
tcp 0 0 *:ftp *:* LISTEN 29701/proftpd: (acc


and

> ps aux | grep ftp
nobody 29701 0.0 0.5 5660 2580 ? Ss Apr08 0:00 proftpd: (accepting connections)
root 11928 0.0 0.2 2204 1024 ? R 09:05 0:00 sh -c (ps aux | grep ftp) 2>&1
root 11929 0.0 0.2 2204 1040 ? R 09:05 0:00 sh -c (ps aux | grep ftp) 2>&1

------------- cut ------------------

It seems, that the command netstat -tap | grep ftp outputs incomplete data ..
Reply With Quote
  #4  
Old 10th April 2007, 16:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by wapa17
It seems, that the command netstat -tap | grep ftp outputs incomplete data ..
That's normal.
FTP seems to be running.
Is FTP allowed in the firewall? What's the output of
Code:
iptables -L
? Are there any errors in your logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 10th April 2007, 19:20
wapa17 wapa17 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Default

Output of Iptables -L
--------------------- cut ----------------------
> iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
------------------------ cut ------------------------------

and yes. ftp is allowed in the firewall ... and it was running before very well, but now I cannot more access FTP neither outside nor locally (and this has something to do with the auto-update..).

Sometimes I have a strange log in syslog:
-------------- cut --------------------
Apr 10 10:30:00 mail proftpd[8538]: mail.myname.net (mail.myname.net [127.0.0.1]) - FTP session opened.
Apr 10 10:30:00 mail proftpd[8538]: mail.myname.net (mail.myname.net [127.0.0.1]) - invalid CommandBufferSize size (0) given, resetting to default buffer size (512)
Apr 10 10:30:00 mail proftpd[8538]: mail.myname.net (mail.myname.net [127.0.0.1]) - FTP session closed.
----------------cut -----------------------
Reply With Quote
  #6  
Old 11th April 2007, 17:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by wapa17
Apr 10 10:30:00 mail proftpd[8538]: mail.myname.net (mail.myname.net [127.0.0.1]) - invalid CommandBufferSize size (0) given, resetting to default buffer size (512)
What's in /etc/proftpd.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 11th April 2007, 18:13
wapa17 wapa17 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by falko
What's in /etc/proftpd.conf?
Hi Falko,

here is the output of /etc/proftpd.conf
-------------------- cut ----------------------
> cat /etc/proftpd.conf
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD CommerceDAT"
ServerType standalone
DefaultServer on

# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart off

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User nobody
Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite on

# Bar use of SITE CHMOD by default
# <Limit SITE_CHMOD>
# DenyAll
# </Limit>

# Needed for NIS.

PersistentPasswd off

# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo

DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."


Include /etc/proftpd_ispconfig.conf
--------------------- cut -----------------------------
Reply With Quote
  #8  
Old 11th April 2007, 18:18
memphis memphis is offline
Junior Member
 
Join Date: Mar 2007
Posts: 17
Thanks: 5
Thanked 0 Times in 0 Posts
Default

I have made this too. I upgradet my Proftpd and now ist is no longer runnin. I need some quick help.
My System is an Debian Sarge System with ISPConfig.

I can not find anything in my logs.
Reply With Quote
  #9  
Old 11th April 2007, 18:19
wapa17 wapa17 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Default

..and,.. i forgot:
the /etc/proftpd_ispconfig.conf:
-------------------- cut -------------------------
> cat /etc/proftpd_ispconfig.conf
###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
DefaultAddress 127.0.0.1
<VirtualHost 10.0.0.101>
DefaultRoot ~
AllowOverwrite on
Umask 002
</VirtualHost>
<VirtualHost 192.168.0.101>
DefaultRoot ~
AllowOverwrite on
Umask 002
<Anonymous /var/www/web1/ftp>
User web1_anonftp
Group web1_anonftp
UserAlias anonymous web1_anonftp
UserAlias guest web1_anonftp
MaxClients 10
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory /var/www/web1/ftp/incoming>
Umask 002
<Limit STOR>
AllowAll
</Limit>
<Limit READ>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>
----------------------- cut -----------------------
Reply With Quote
  #10  
Old 12th April 2007, 18:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

The configuration looks ok, so it must be a problem with ProFTPd itself.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
wapa17 (12th April 2007)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP won't work correctly ;-/ LeoLinux Installation/Configuration 6 28th November 2006 23:00
ftp problems tgansert Installation/Configuration 20 27th May 2006 20:06
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 09:03
Website users? ctroyp General 25 6th January 2006 19:02
FTP 101 the basics koegies Installation/Configuration 7 17th November 2005 16:55


All times are GMT +2. The time now is 10:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.