课程: Linux System Engineer: Network Filesystems Using NFS and Samba

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Create an NFS share with root access

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…

内容