Regardless of the purpose of a particular server, it needs to store data somewhere. It’s also often important to separate data from access where it’s not needed. For example, an NFS server that stores both database and website data. In this lab, you’ll be able to practice placing restrictions on what data is shared where.
Successfully complete this lab by achieving the following learning objectives:
- Edit the exports file on the NFS server to match the changes required in the instructions.
The first thing to do is edit the
/etc/exportsfile on the NFS server. Once we replace the
*‘s in the file with the internal IP addresses of the respective servers, we can change the read/write settings as well. After saving that file, we need to unexport the current settings and then export the new ones.
- Ensure that the new settings work as desired on the website and database servers.
On the web server, we need to mount the export as requested. Once that’s complete, we can start Apache. On the database server, we again need to mount the export as requested and start
postgresql. We can also test from the database server to the website export to verify that we’re unable to mount it.