From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Create a simple NFS share

Create a simple NFS share - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Start my 1-month free trial

Create a simple NFS share

- [Instructor] Before starting the following exercises, make sure you've watched the previous videos, which installed and started the relevance services. Also make sure your name resolution for both hosts is working. Double check the etc host file on both VMs to make sure the names match the relevant IP addresses before proceeding. Lastly, make sure you're logged into your rhhost1 VM and have a terminal open. Let's start this exercise by creating a new directory to export. In a terminal type in sudo space mkdir space slash home slash usershare. Type in your password if prompted. Let's verify this using ls. Type in ls space dash l capital z space slash home and hit enter. We can see that our directory exists and the SE Linux security context is home underscore root underscore t. This is because the root user created it in the slash home directory. We will need a set of SE Linux Booleans for the shares we want to create. Type in clear and then type in sudo space setsebool space dash…

Contents