![]() The possible configuration options are listed in full below. CONFIGURATIONĪ standard /etc/nf file is supplied with Net::FTPServer in the distribution. The next sections talk about each of these possibilities in turn. By subclassing Net::FTPServer, Net::FTPServer::DirHandle and Net::FTPServer::FileHandle you may also write your own personalities. Personalities can be used to make deep changes to the FTP server: for example, there is a supplied personality which allows the FTP server to serve files from a relational database. ![]() Thirdly, one of several different supplied personalities can be chosen. These custom commands are written in Perl. Secondly, commands can be loaded into the server at run-time to provide custom extensions to the common FTP command set. Net::FTPServer can be configured and extended in a number of different ways.įirstly, almost all common server configuration can be carried out by editing the configuration file /etc/nf. test Test mode (used only in automatic testing scripts) CONFIGURING AND EXTENDING THE SERVER o option=value Override config file option with value P PIDFILE Save pid into PIDFILE (daemon mode only) C CONF Use CONF as configuration file (default: s Run in daemon mode (default: run from inetd) p PORT Listen on port PORT instead of the default port Restart xinetd using: /etc/init.d/xinetd restart COMMAND LINE FLAGS -help Display help and exit # description: Net::FTPServer, a secure, \Ĭheck any other possible FTP server configurations to ensure they are all disabled (ie. The following configuration has worked for me:Ĭreate the file /etc/xinetd.d/net-ftpserver containing: # default: on ![]() In practice, however, it has proven to be quite difficult to configure services under xinetd (mainly because xinetd gives no diagnostic information when things go wrong). Xinetd is a modern alternative to inetd which is supposedly simpler to configure. ![]() This access control is in addition to any access control which you may configure through /etc/nf.)Īfter editing this file you will need to inform inetd: killall -HUP inetd RUNNING FROM XINETD (This assumes that you have the tcp-wrappers package installed to provide basic access control through /etc/hosts.allow and /etc/ny. RUNNING FROM INETDĪdd the following line to /etc/nf: ftp stream tcp nowait root /usr/sbin/tcpd Solaris administrators may get a nasty shock if they type killall as root! Just kill the parent process by hand instead). (Note: Azazel points out that the above is a Linux-ism. You may want to add this to your local start-up files so that the server starts automatically when you boot the machine. To start Net::FTPServer as a standalone server, do: /usr/sbin/ -S If you have a high load site, you will want to run Net::FTPServer as a standalone server. In the rare situation when this is not the case, you may need to edit these scripts. These scripts assume that the perl interpreter can be found on the current $PATH. The first script is for the full FTP server. The commonly used scripts are: * /usr/sbin/ Each start-up script starts the server in a different configuration: either as a full FTP server, or as an anonymous-only read-only FTP server, etc. (On Debian in /usr/bin or /usr/local/bin). You will probably need to edit this file to suit your local configuration.Īlso after doing make install, several start-up scripts will have been installed in /usr/sbin/*. See the section CONFIGURATION below.Īfter doing make install, the standard nf file should have been installed in /etc/nf. Full documentation for all the possible options which you may use in this file is contained in this manual page. INSTALLING AND RUNNING THE SERVERĪ standard nf file is supplied with the distribution. * Virtual filesystem allows files to be served * Security features: chroot, resource limits, tainting, * Complete implementation of current RFCs. Net::FTPServer is a secure, extensible and configurable FTP server written in Perl.Ĭurrent features include: * Authenticated FTP access. Net::FTPServer - A secure, extensible and configurable Perl FTP server SYNOPSIS ftpd.sh
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |