Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi everyone, I've just upgraded my computer from Red Hat 8 to 9 and now I'm trying to install the ProFTPD server. The installation went fine. However, when I try to start it with:
# service proftpd start
it gives me this reply:
Starting proftpd: [ OK ]
The reply says the server started but when i try to access it, it coudnt connect.When I restart the server, the message says:
Shutting down proftpd: [FAILED]
Starting proftpd: [ OK ]
It seems that the server never started, but the message said it did. I then tried the vsftpd but the same thing happens. Is there anything I'm doing wrong? What can I do to get it the server to work?
This is how I managed to get ProFTP to work. I installed it from source not with an RPM so there could be some differences.
After the installation is done edit the file /usr/local/etc/proftpd.conf and modify the following lines:
ServerType inetd
# Set the user and group under which the server will run
Group nobody
After that edit the file /etc/xinetd.conf and add the following (it's a basic installation but it works for me for the moment):
service ftp
{
flags = REUSE
socket_type = stream
instances = 50
wait = no
user = root
server = /usr/local/sbin/proftpd
bind = <ENTER THE HOST'S IP ADDRESS HERE>
log_on_success = HOST PID
log_on_failure = HOST RECORD
}
After that you can reboot your server and the deamon will start
bind = <ENTER THE HOST'S IP ADDRESS HERE>
log_on_success = HOST PID
log_on_failure = HOST RECORD
did you leave "bind" line in?
what did you put in for "HOST PID" ?
what did you put in for "HOST RECORD?
I am configuring proftpd 1.2.9 on RH 9.0 and I am getting an error:
421 Service not available, remote server has closed connection <---- when trying to ftp in to the machine, from a remote machine.
when trying to connect...could the three lines above (with the correct comments in them) help to remove my error?
As far as I know you need the 'bind' line with your hosts ip-address.
The lines:
log_on_succes = HOST PID
log_on_failure = HOST RECORD
should be litterary in the xinetd.conf
This is how my /etc/xinetd.conf looks like, the only thing you should do is change the ip-address:
<cut here>=============================================
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213
Rep:
Did you try scanning the local machine with NMAP?
nmap -sT localhost
perhaps it is binding to the wrong port. Did you make sure your server was configured correctly? Doublecheck that it isn't running.
ps -aux | grep *proftp*
====================
netstat -a
will show listening ports on your computer. Maybe one of them will map to the ftp server.
Did you doublecheck the configuration of your server? I didn't notice you mentioning anything about looking at or even editing the configuration file. That would be the first place I would look before ever trying to start it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.