EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 9


SIMULATION -

Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it needs you to configure yum direct to the already existing file server.)

Show Answer
Correct Answer:

To install an FTP server and configure anonymous download for the /var/ftp/pub directory, follow these steps for a typical RHEL-based system: First, configure the YUM repository if it is directed to an already existing local file server. Edit or create a YUM repository configuration file, for example, use the command 'cd /etc/yum.repos.d' and then 'vim local.repo'. In the 'local.repo' file, add the following lines: [local] name=local.repo baseurl=file:///mnt enabled=1 gpgcheck=0. Next, update the YUM cache with 'yum makecache' and then install the vsftpd package using 'yum install -y vsftpd'. Start the vsftpd service with 'service vsftpd start' and ensure it starts on boot with 'chkconfig vsftpd on'. Verify the service configuration with 'chkconfig --list vsftpd'. Modify the vsftpd configuration file with 'vim /etc/vsftpd/vsftpd.conf', setting 'anonymous_enable=YES'. Restart the vsftpd service to apply the changes with 'service vsftpd restart'. This will allow anonymous users to download files from the /var/ftp/pub directory.

Discussion

5 comments
Sign in to comment
jujuonbeat
Nov 9, 2020

FTP stuff no longer on RHCSA from 2019

Rahul95
May 31, 2023

Not valid for RHCSA 9

[Removed]
Jun 2, 2022

Are you guys certain that this isn't a question asking you to configure a local YUM repo? If so, the first half of the solution is correct (except for the base URL): # cd /etc/yum.repos.d # vim local.repo [local] (can be any name in brackets) name=local.repo (any name you want) baseurl=/var/ftp/pub (local repo's network location) enabled=1 (duh, enabled) gpgcheck=0 (doesn't perform check)

Mari685
Jun 5, 2022

need some details about redhat can you please dm me on my instagram luvkhan123 please

qolani
Jul 27, 2023

How do you check if your configuration is done correctly?

corpio
May 25, 2021

Thts correct

14_aman
May 30, 2022

WHY FTP WAS NOT ADDED IN FIREWALLD? IS FIREWALL DISABLED ALREADY IN MACHINE?

Mari685
Jun 5, 2022

can i have some details about redhat? can you dm me in my insta page luvkhan123 plz