[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wuftpd-questions
Subject:    Re: Running multiple instances on one host
From:       Chris Roy <roych () gse ! harvard ! edu>
Date:       2002-03-21 13:42:59
[Download RAW message or body]

Yes, you can do that.  It's also helpful for testing new versions while 
leaving the production FTP running.

This is what you need to do.

1) Create a second ftp directory.  If your current ftp directory is 
/etc/ftpd, create a directory /etc/ftpd2 and copy the ftp files into it.

2) In /etc/services, you should see the following entry:

ftp-data        20/tcp
ftp             21/tcp

Simply add a new entry, such as:

ftp2-data        2120/tcp
ftp2             2121/tcp

3) In your inetd.conf file, you have the entry:
ftp     stream  tcp     nowait  root    /etc/ftpd/in.ftpd       in.ftpd -a

Make a second entry like this:

ftp2     stream  tcp     nowait  root    /etc/ftpd2/in.ftpd       in.ftpd -a

That's it.  Restart your inetd and you should be all set.

I hope this helps,

-----------------------------------------------
Chris Roy, Systems Administrator
Harvard University Graduate School of Education
-----------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic