12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

388CHAPTER 19Explaining Other Common Network ServicesIf enabled, the output should be the following:allow_ftpd_anon_write —> onTo share home directories on the FTP server, execute the following:setsebool -P ftp_home_dir=1You can also change these boolean values by running the SE<strong>Linux</strong> Management Tool. Startit by selecting <strong>Administration</strong>, SE<strong>Linux</strong> Management from the System menu on the toppanel of the desktop or by executing the system-config-selinux command. Enter theroot password when prompted if running as a non-root user. Select Boolean from the liston the left. On the right, click the triangle icon next to FTP. The SE<strong>Linux</strong> booleans affectingFTP appear. Changes take effect immediately after changing the value of the checkbox next to the boolean.TIPThe SE<strong>Linux</strong> booleans that affect the FTP server are described in the ftpd_selinux manpage viewable with the man ftpd_selinux command.Configuring the FTP Server<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong> 5 includes the vsftpd FTP service. If the vsftpd package is notalready installed, install it with <strong>Red</strong> <strong>Hat</strong> Network as discussed in Chapter 3.The FTP server uses the /etc/vsftpd/vsftpd.conf configuration file. Using this file, youcan set options for displaying a custom banner message after users log in, setting thedefault file permissions for uploaded files, and setting the port on which to listen forincoming connections.For a full list of available directives, read the man page with the man vsftpd.confcommand. The vsftpd package installs a basic configuration file on the system with a fewcommonly used directives set and explained with comments. Table 19.1 also includessome commonly used directives.TABLE 19.1 Common vsftpd Directivesvsftpd Directive Default Value Descriptionlisten_port 21 Port on which to listen for incoming FTP connection requests.ftpd_banner (none) Use this string as the greeting message after users log into the server.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!