Problem

In this hands-on project, you export the /etc directory using NFS and access it across t...

In this hands-on project, you export the /etc directory using NFS and access it across the network using the mount command.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. Edit the /etc/exports file with a text editor such as vi. Are there any entries? Add a line that reads:

/etc *(rw,root_squash)

When finished, save your changes and quit the editor.

3. At the command prompt, type exportfs -a and press Enter.

4. At the command prompt, type service nfs start ; service nfslock start and press Enter to start the NFS daemons.

5. At the command prompt, type mount –t nfs localhost:/etc /mnt and press Enter.

6. At the command prompt, type mount and press Enter. What is mounted to the /mnt directory?

7. At the command prompt, type cd /mnt and press Enter. Next, type ls –F at the command prompt and press Enter. What directory are you observing? Type ls –F /etc at the command prompt and press Enter. Is the output on the terminal screen identical?

8. At the command prompt, type cd and press Enter to return to your home directory. Next, type umount /mnt at the command prompt and press Enter to unmount the NFS filesystem.

9. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 13