Changes

Jump to: navigation, search

OPS335: File Servers

65 bytes added, 12:42, 21 February 2016
no edit summary
'''Perform the following tasks:'''
On vm03 as root perform the following tasks:#Switch to your VM3 machine.*#Comment or remove the line from /etc/fstab that you entered earlier.*#With a server installation of Fedora 22, you will not need to install autofs, but on other installations you might need: <br>'''dnf install autofsautof'''s*#Move the existing file /etc/auto.master: <br>'''mv /etc/auto.master /etc/auto.master.orig'''*#This is a great way to keep a back up in case you need to restore the file in the future. Now create another: <br>'''vi /etc/auto.master'''*#Add only the following line: <br>'''/home /etc/auto.home --timeout=60'''*#Create the file /etc/auto.home and add ONLY the following line: <br>'''* -fstype=nfs4,rw,nosuid,soft 192.168.x.3:/home/&'''*#Start autofs, and ensure the service will automatically start at boot. *#Log out of vm3 and log back in using your learn account.*#Open a terminal and enter the command: <br>'''mount | grep home'''*#How does it differ from the previous mount?*#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 the nfs server 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'''
===Setting up Automount on the other VM===
13,420
edits

Navigation menu