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

Unlock the full course today

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

Create an NFS share with root access

Create an NFS share with root access - Red Hat Enterprise Linux Tutorial

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

Start my 1-month free trial

Create an NFS share with root access

- [Instructor] Before proceeding with this exercise, I'm creating an NFS share with root access. You wanna make sure that you've watched the previous videos which installed the relevant services. Also, make sure your name resolution is working for both hosts. Lastly, make sure you are logged in to 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 mkdir /home/rootshare and hit Enter. We will also need to set a couple of SELinux booleans. Type in sudo setsebool -P nfs_export_all_ro on and hit Enter. And bring your line back and change ro to rw and hit Enter again. Now let's add the NFS service to the firewall. Type in sudo firewall-cmd --permanent --add-service nfs and hit Enter. If it's already done, we can move on. Let's reload the firewall rules now. Type in sudo firewall-cmd --reload and hit Enter. Now let's run the NFS service and make sure it starts at boot. Type in clear and then type in sudo…

Contents