Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Red Hat Certified System Administrator (RHCSA) · Red Hat
Hotspot Scenario
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
I understood the task differently, like we need to mount server path to ldapuser40 folder under /home. Might be wrong, correct me if so. #dnf install -y autofs (installs required package) #systemctl enable --now autofs (enable service at next boot and start it immediately) #showmount -e 172.24.40.10 (to check existing NFS export on the server) #vim /etc/auto.master (edit master file) #/home /etc/test.mapfile (add this line, configures /home as main mount point where everything defined in test.mapfile will be mounted under) #vim /etc/test.mapfile (creates and starts editing the mapfile) #ldapuser40 172.24.40.10:/rhome/ldapuser40 (add this line, first part is the folder which will be created under /home defined previously in master, and contents will be retrieved from server path on the right). #systemctl reload autofs (reloads all autofs configs)
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Forgot to add #useradd -M ldapuser40 (after showmount in 3rd line - this will create the user without home folder)
yum install autofs showmount -e 172.24.40.10 ##Create user without a home directory useradd -M ldapuser40 ##Create file vi /etc/auto.master.d/autohome.autofs ##add this line /- /etc/auto.home ##create this file vi /etc/auto.home ##Add this line and save file /home/ldapuser40 -rw,sync 172.24.40.10:/rhome/ldapuser40 systemctl enable --now autofs.service
Something like : dnf install autofs -y systemctl enable autofs vi /etc/auto.master /rhome/ldapuser40 /etc/auto.examtopic vi /etc/auto.examtopic ldapdir 172.24.40.10:/rhome/ldapuser40 systemctl start autofs mount