How to change a ftp Port in Debian

Hello,

I was having a problem with proftpd and decided that I'm going to switch to pure-ftpd-mysql, but I need to change the port in order to do testing before I remove proftpd, doing a search in google I fount that in the file /etc/pure-ftpd/conf/Bind I can do it, but I don't have that file.

How can I change the port?
verguillasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wkCommented:
Did you install Pure-FTPd?

See http://www.debian-administration.org/articles/383 

pure-ftpd-mysql seems to be authentication module for Pure-FTPd that allows to use MySQL to store user information (authentication information).

Hope this helps,

William Lee    CISA
Hong Kong
0
beesterCommented:
Are you using inetd? if so, you can add a port number and the corresponding program to the /etc/inetd.conf file
0
wkCommented:
Did verguillas try all 2 suggestions?  Please give feedback to me and beester.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

verguillasAuthor Commented:
Hi to all,

First of all, I had to change to pure-ftpd, cause it was easier to do what I wanted to do.

Second, I apologize because I didn't answer before to this post.

Third, Quomodo, it's not a lack of courtesy, is a lack of time and experience using EE.

0
chessboxingCommented:
Change your default ftp port 21 by editing the following file

/etc/services

use any text editing program you prefer for instance:

nano /etc/services

search this line:
ftp             21/tcp
set 21 to a port you like (except not a used port).  Safe by hitting ctrl+o then ENTER. Then crtl+x to close.
0
amprantiCommented:
/cet/services is only a mapping between ports and services. It DOESNT change the actual port the service is running

To change the port to "pureftp" do this:

Edit pure-ftpd.conf with your favorite editor
If you dont know where is located: find / -name pure-ftpd.conf

Cheange this line:
# IP address/port to listen to (default=all IP and port 21).
# Bind 127.0.0.1, 21

Save and restart the service
If you have iptables enabled remember to open the ports
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rindiCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.