[NTLUG:Discuss] Re: Mandrake FTP

Chuck cfgraf at swbell.net
Sat Oct 11 14:17:06 CDT 2003



>
> 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



More information about the Discuss mailing list