Operating System - HP-UX
1850762 Members
3353 Online
104055 Solutions
New Discussion

Re: problem in multiple ftp setup in unix

 
sajjan
Occasional Advisor

problem in multiple ftp setup in unix

Please guide me to setup multiple FTP servers in a single unix machine using unix's native ftp daemon(in.ftpd).
(Eg neetd to setup ftp server in 1050 instead of convensional port 21)
2 REPLIES 2
Simon Hargrave
Honored Contributor

Re: problem in multiple ftp setup in unix

You can make an additional FTP listener on port 1050 by: -

- adding the following line to /etc/services:

myftp 1050/tcp

- adding the following line to /etc/inetd.conf

myftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

- running "inetd -c" to reload the inet daemon.

Note however that this will use exactly the same config files in /etc/ftpd so will appear the same, apart from listening on a different port.

If you want to run a different configuration (ie one daemon running anonymous ftp, another daemon running with a different root directory etc) then you'll need to use a 3rd-party FTP daemon, like wu-ftpd for example.
sajjan
Occasional Advisor

Re: problem in multiple ftp setup in unix

Hi Simon,
Thanks for your reply,but the problem is ftp is using two ports for data transfer 20 and 21 ,one for data connection and one for control connection so how can i make a complete ftp server with the change of only one port in services.If you go through the /etc/services file you can see ftp_data service with port number 20.

Sajjan