13,420
edits
Changes
no edit summary
'''Perform the following tasks:'''
#Switch to your '''VM3 ''' machine.#Comment or remove the line from that you added in the '''/etc/fstab that you entered earlier''' file in the previous investigation.#With a server installation of Fedora 22, you will not need to install Install the '''autofs, but on other installations you might need''' package by issuing the following command:<br>'''dnf install autofautofs'''s#Move Rename the existing file /etc/auto.masterfile by issuing the following command:<br>'''mv /etc/auto.master /etc/auto.master.orig'''#This is a great way to keep <br>Keep this file as a back -up in case you need to restore the file in the future. Now #Use the vi text editor to create anotherthe file '''auto.master''' file by issuing the command:<br>'''vi /etc/auto.master'''<br>This should new#Add only the following linein this file:<br>'''/home /etc/auto.home --timeout=60'''#Create Use the vi text editor to create a file called '''/etc/auto.home and add ONLY '''#Add the following linein this file:<br>'''* -fstype=nfs4,rw,nosuid,soft 192.168.x.3:/home/&'''#Start Use the systemctl command to start the autofsservoce, and another systemctl command in order to ensure that the autofs service will automatically start at boot.#Log out of vm3 and log back in into '''vm3''' using your learn account.#Open a terminal and enter the following command:<br>'''mount | grep home'''#How does it differ from the previous mount?Record your findings in your lab logbook.
#Create another empty file with the name:<br>'''touch another_empty_file_from_vm03'''
#Run and record the output of the command:<br>'''df -hT'''
#Back on Switch to the nfs server (ie. VM2 machine), run and record the output of '''ls -l ''' in your home directory.#(You should see the files you created on vm03).#You may encounter errors with SELinux during the lab (though it has not been a problem recently). It is required that you leave it running. #Use the following commands to determine what booleans need to be flipped:<br>'''audit2allow < /var/log/audit/audit.log'''<br>'''audit2why < /var/log/audit/audit.log'''
#Now that you have VM3 automatically mounting home directories from VM2, configure VM1 to do the same.