[NTLUG:Discuss] Re: Mandrake FTP
Alton R. Pouncey, II
alton at trainers-r-us.com
Sat Oct 11 22:02:56 CDT 2003
On Sat, 2003-10-11 at 14:17, Chuck wrote:
> >
> > On a fresh install of Mandrake 9.1 on a 1.3gig Athlon with 512meg of
> > memory, I am having trouble getting FTP to work. When I do "ftp localhost"
> > I get:
> >
> > [chuck at tbird chuck]$ ftp localhost
> > Connected to tbird.cfgraf.com.
> > 421 Service not available, remote server has closed connection
> > ftp>
> >
> > So I quit out of ftp, and try restarting proftpd:
> >
> > [root at tbird chuck]# service proftpd restart
> > Shutting down proftpd: [FAILED]
> > Starting proftpd: [ OK ]
> > [root at tbird chuck]#
> >
> > No matter how many times I restart it, it always fails to stop. It does
> > this on shut-down also.
> >
> > I have tried editing /etc/proftpd.conf many ways, but nothing makes any
> > difference. So I decided to ditch proftp for pure-ftp, ( pure-ftp worked
> > great for years on Red Hat). I can uninstall proftp OK, but when I try and
> > install pure-ftp-1.0.14-5mdk.x86_64.rpm, it tells me it is already
> > installed. Of course, trying to start pure-ftpd yields nothing, and using
> > whereis likewise gets no response. Pure-ftpd is not listed in
> > /var/logs/rpmpkgs.
> >
> > Help. I have a friend who just did an install of mandrake who has the
> > exact same problem with proftp, but I cannot find any reference to this on
> > Google or the Mandrake site. What can I do to get rid of proftp and get
> > pure-ftp to install?
> >
> > Thanks.
> >
> > Chuck Graf
> > www.cfgraf.com
> >
> > ------------------------------
> >
>
> >
> > It's been a long time since I played with Mandrake, but did you make
> > sure you have a correct entry for proftpd in /etc/xinetd.d ?
>
> There appears to be two ways to run proftp: as a stand-alone server, and as
> proftp-xinetd. I was trying to get the stand-alone server running.
>
> The Directory /etc/xinetd.d has two proftpd files. proftpd-xinetd looks like
> this:
>
> # default: off
> # description: proftpd server, xinetd version. \
> # Don't run the standalone version if you run \
> # this!
>
> service ftp
> {
> disable = yes
> socket_type = stream
> wait = no
> user = root
> server = /usr/sbin/in.ftpd
> log_on_success += DURATION USERID
> log_on_failure += USERID
> nice = 10
> disable = yes
> }
>
> And proftpd-xinetd.rpmsave looks like this:
>
> # default: off
> # description: proftpd server, xinetd version. \
> # Don't run the standalone version if you run \
> # this!
> service ftp
> {
> disable = no
> socket_type = stream
> wait = no
> user = root
> server = /usr/sbin/in.ftpd
> log_on_success += DURATION USERID
> log_on_failure += USERID
> nice = 10
> }
>
> Note both warn not to run the proftpd-xinetd server with the stand-alone
> daemon. Trying to start proftpd.xinetd gets me this:
>
> [root at tbird xinetd.d]# service proftpd-xinetd start
> proftpd-xinetd is a xinetd service and it is disabled
> to activate it do the following command:
> chkconfig proftpd-xinetd on
> [root at tbird xinetd.d]#[root at tbird xinetd.d]# chkconfig proftpd-xinetd on
> [root at tbird xinetd.d]# ftp localhost
> Connected to tbird.cfgraf.com.
> 421 Service not available, remote server has closed connection
> ftp> quit
> [root at tbird xinetd.d]#
>
>
> Changing the file to disable = no and restarting the service did not change
> anything.
>
> Does anyone have proftp working? Post your proftpd.conf file?
>
> Thanks
>
> Chuck
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
I'm running Proftpd on RedHat as a standalone server just fine. Is your
/etc/hosts.allow file setup to allow you to access proftpd from
localhost? Here is my /etc/xinetd.d/ftp file:
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service ftp
{
disable = no
port = 21
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/local/sbin/in.proftpd
log_on_failure += USERID
}
and here is the proftpd.conf file:
ServerName "Trainers-R-Us"
ServerType inetd
ServerIdent On "ftp.trainers-r-us.com"
DefaultServer on
# 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 that the server normally runs at.
User nobody
Group nobody
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
TransferLog /var/proftpd/xferlog
<Limit WRITE>
DenyAll
</Limit>
--
Alton R. Pouncey, II
SCSA, SCNA, CCNA, CIW Professional
More information about the Discuss
mailing list