Open main menu

CDOT Wiki β

Changes

OPS535-lab-nfs

674 bytes added, 01:57, 29 January 2021
Pre-Requisites
==Pre-Requisites==
:*The pre-lab must be complete so that your virtual machines share access to a private network.:*Create a new user on each of your virtual machines using your own Seneca login.:*If you don't have the nfs-utils package installed, install it now.
==Investigation 1: NFS Server Setup==
Make sure to double check that the file permissions have been set correctly.</li>
<li>To set the sticky bit on the directory "/nfs-pub" , use the command
<soursesource>chmod +t /nfs-pub</source></li>
<li>Edit your /etc/exports file and insert the following lines:
<source>/nfs-pub ip-of-vm1(rw,root_squash)
/nfs-pub ip-of-vm3(rw,root_squash)</source>
"ip-of-vm1" should be replaced by the actual IP address of vm1 (VM1),and "ip-of-vm3" should be replaced by the actual IP address of vm3 (VM3).</li>
<li>Enter the command
# What is the full path name of the nfs module file? i.e. where is it on your hard drive?
# What is the purpose of the sticky bit?
# Who is the owner of /nfs-mnt/passwd.A.root and /nfs-pub/passwd.A.root? Are they the same? Why?
# Who is the owner of the file /nfs-mnt/passwd.A.user and /nfs-pub/passwd.A.user? Are they the same? Why?
# Who is the owner of the file /nfs-mnt/passwd.A.map and /nfs-pub/passwd.A.map? Are they the same? Why and why not?
# Who is the owner of the file /nfs-mnt/passwd.A.ops and /nfs-pub/passwd.A.ops? Are they the same? Why and why not?
# Who is the owner of /nfs-mnt/group.A.root and /nfs-pub/group.A.root? Are they the same? Why?
# Did the file /nfs-mnt/hosts.A.root get created? Why or why not?
1,760
edits