Red_Hat
EX200 · Question #8
08. Configure autofs Configure autofs to automatically mount the home directory of a remote user as described below: - materials.example.com (172.25.254.254) exports /rhome via NFS to your system…
This task requires configuring autofs to automatically mount a remote user's NFS home directory, materials.example.com:/rhome/remoteuser1, locally at /rhome/remoteuser1 with write permissions.
Submitted by katya_ua· Apr 18, 2026Configure Local Storage
Question
- Configure autofs Configure autofs to automatically mount the home directory of a remote user as described below: - materials.example.com (172.25.254.254) exports /rhome via NFS to your system. This filesystem contains a pre-configured home directory for the user - The home directory of remoteuser1 is materials.example.com:/rhome/remoteuser1. - The home directory of remoteuser1 should be automatically mounted locally at /rhome/remoteuser1. - The home directory must be writable by the user. - The password for remoteuser1 is "flectrag". Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: # Preparations (not required for the exam) # Go back to foundation0, remote into classroom, create the remoteuser1 user and directory. # This step is necessary to avoid issues with autofs mounting during testing. [kiosk@foundation0 ~]$ ssh root@classroom 'useradd -u 1010 remoteuser1 && mkdir -p /rhome/remoteuser1 && chown remoteuser1: /rhome/remoteuser1' # Install nfs-utils and autofs [root@node1 ~]# yum -y install nfs-utils autofs [root@node1 ~]# vim /etc/auto.master /rhome /etc/auto.rhome [root@node1 ~]# vim /etc/auto.rhome remoteuser1 -rw materials.example.com:/rhome/remoteuser1 [root@node1 ~]# systemctl enable --now autofs # Verification [root@node1 ~]# ll /rhome/ [root@node1 ~]# ssh remoteuser1@localhost remoteuser1@localhost's password:
flectrag$ pwd /rhome/remoteuser1 $ touch my.file $ mount | grep rhome ... materials.example.com:/rhome/remoteuser1 on /rhome/remoteuser1 type nfs4 (rw,relatime,vers=4.2,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=172.25.250.100,local_lock=none,addr=1 72.25.254.254)
Explanation
This task requires configuring autofs to automatically mount a remote user's NFS home directory, materials.example.com:/rhome/remoteuser1, locally at /rhome/remoteuser1 with write permissions.
Concept tested. AutoFS configuration for NFS mounts
Topics
#autofs#NFS#Automated Mounting#User Home Directories
Community Discussion
No community discussion yet for this question.