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.
I've not used pure-ftpd but my first thought was perhaps it is trying to use the standard ftpd port and you're running ftpd already?
Do a "grep ftp /etc/services" to see ports assigned for ftp.
Then run an "lsof -i: <port> for each of the ports seen. This will show you if any of those ports is currently open for a process and give you the process name and PID.
The 'grep' does not have much of a meaning. It only tells you which port-number is associated with a service.
My guess is that you already have a server-application that is using the ftp-port (probably another ftp-server). This is also what jlightner stated in his post.
You can try the commands below. If you get a connection, it proves that there's another server-application using the ftp-port. If you don't get a connection, there's either no server-app running that uses the ftp-port or a firewall blocks access to thid port (so in that case the btest is non-conclusive).
ftp localhost ftp ip-address
Last edited by Wim Sturkenboom; 09-29-2005 at 02:02 AM.
The grep was to give you a list of ftp related ports on your server (assuming they are there - if the application requests a specific port number it doesn't have to be in /etc/services - it is just a lookup table).
The command that would let you know if the port is already in use is the lsof I mentioned:
For example:
lsof -i :21
Would show you any process that had port 21 in use.
lsof -i :115
Would show you any process that had port 115 in use.
Essentially you need to find out what port pure-ftp uses then run lsof -i :<port> to insure that port isn't already in use.
Originally posted by Wim Sturkenboom Mea culpa, mea culpa
I did not read your post properly
No problem. Though I am loathe to admit it there was at least one occasion in my life when I was wrong about something - it took me years to get over it. The flashbacks still bother me...
Thanks for the info...I was banging my head on this one too...and being a fairly new linux user I wasn't sure where or how to start troubleshooting this.
The info here will certainly be helpful for the future...and it's true about the MAN page...it was extremely helpful as the suggested line to run "... -S IPADDR:PORT" didn't work for me...but reading the MAN page I discovered that it should be IPADDR,PORT. So good information on all levels for a newbie...thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.