Home > Articles

This chapter is from the book

This chapter is from the book

Lab 8-2: Manage a vsftpd Service

Write a playbook that uses at least two plays to install a vsftpd service, configure the vsftpd service using templates, and configure permissions as well as SELinux. Apply the following requirements:

  • squ.jpg Install, start, and enable the vsftpd service. Also open a port in the firewall to make it accessible.

  • squ.jpg Use the /etc/vsftpd/vsftpd.conf file to generate a template. In this template, you should use the following variables to configure specific settings. Replace these settings with the variables and leave all else unmodified:

    • squ.jpg anonymous_enable: yes

    • squ.jpg local_enable: yes

    • squ.jpg write_enable: yes

    • squ.jpg anon_upload_enable: yes

  • squ.jpg Set permissions on the /var/ftp/pub directory to mode 0777.

  • squ.jpg Configure the ftpd_anon_write Boolean to allow anonymous user writes.

  • squ.jpg Set the public_content_rw_t SELinux context type to the /var/ftp/pub directory.

  • squ.jpg If any additional tasks are required to get this done, take care of them.

Pearson IT Certification Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Pearson IT Certification and its family of brands. I can unsubscribe at any time.