Changes

Jump to: navigation, search

OPS535-lab-nfs

161 bytes added, 15:01, 4 September 2019
m
Investigation 2: File ownership of new files created on NFS shares: - adding instruction to repeat with vm3
<li>Create the directory /nfs-mnt. We will use this as the mount point for the remote directory.</li>
<li>Use the mount command to attach the remote directory ('''/nfs-pub''' from vm2) into the local mount point ('''/nfs-mnt''')</li>
<li>Use commands like mount or df to chech check that the mount command executed successfully (that is, that VM2's '''/nfs-pub''' is now being treated as part of the local filesystem).</li><li>Confirm that you can access the contents of /nfs-mnt. They should be identical to VM2's '''/nfs-pub''' (because it IS VM2's '''/nfspnfs-pub'''). Note the owner and the group owner of the file passwd.S.</li>
<li>Still on VM1, copy the file '''/etc/passwd''' into the '''/nfs-mnt''' directory. Name the copy '''passwd.A.root'''.</li>
<li>Confirm that the file copied correctly. Again, make note of the owner and group owner of the file.</li>
<li>Switch to being a regular ('''non-root''') user and copy the file '''/etc/passwd''' into the '''/nfs-mnt''' directory again, this time naming the copy '''passwd.A.user'''. Again, make note of the owner and group owner of the file. Note how it differs from the ownership of the file created as root.</li>
<li>Repeat this investigation on VM3, so that it also has access the shared filesystem. Replace the A in the copied filenames with B (e.g. passwd.B.root).</li>
</ol>
932
edits

Navigation menu