Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




32.7. Configure the /etc/logrotate.d/ftpd file

Configure your /etc/logrotate.d/ftpd file to automatically rotate your log files each week by creating the /etc/logrotate.d/ftpd file and add the following lines:
          /var/log/xferlog {
          # ftpd doesn't handle SIGHUP properly

32.7.1. Configure ftpd to use tcp-wrappers inetd

Tcp-wrappers should be enabled to start and stop the ftpd server. Upon execution, inetd reads its configuration information from a configuration file which, by default, is /etc/inetd.conf. There must be an entry for each field of the configuration file, with entries for each field separated by a tab or a space.

Edit the inetd.conf file, vi /etc/inetd.conf and add or verify the existence of the following line:
        ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -a
Update your inetd.conf file by sending a SIGHUP signal, killall -HUP inetd, after adding the above line in the file.
        [root@deep ] /# killall -HUP inetd

Edit the hosts.allow file, vi /etc/hosts.allow and add, for example, the following line:
Which means client IP with host name is allowed to FTP on to the server.

  Published under the terms of the Open Publication License Design by Interspire