sudo chmod -R 777 /var/www/html
sudo chmod -R 777 /opt/RD/NAS
sudo chmod -R 777 /opt/RD/SNAS
sudo chmod -R 777 /opt/RD/UNAS
sudo chmod -R 777 /opt/RD/MNAS
You will need to do this in the future since the files could get locked to one machine and OS.
--------------------------------------
Then install nfs-kernel-server by: sudo apt install nfs-kernel-server
And start it by: sudo systemctl start nfs-kernel-server.service
----------------------------------
Then edit the export list by: sudo nano /etc/exports
and add these lines:
/opt/RD/NAS 192.168.10.0/24(rw,async,no_subtree_check) 10.8.0.0/24(rw,async,no_subtree_check)
/var/www/html 192.168.10.0/24(rw,async,no_subtree_check) 10.8.0.0/24(rw,async,no_subtree_check)
/opt/RD/SNAS 192.168.10.0/24(rw,async,no_subtree_check) 10.8.0.0/24(rw,async,no_subtree_check)
/opt/RD/UNAS 192.168.10.0/24(rw,async,no_subtree_check) 10.8.0.0/24(rw,async,no_subtree_check)
/opt/RD/MNAS 192.168.10.0/24(rw,async,no_subtree_check) 10.8.0.0/24(rw,async,no_subtree_check)
/var/log 192.168.10.0/24(rw,async,no_subtree_check) 10.8.0.0/24(rw,async,no_subtree_check)
#NAS = NAS
#SNAS - Secondaru NAS or Super NAS
#UNAS = Ultra NAS
#WNAS = Web NAS
#MNAS = Mini NAS
#log-nas = Read only nas to view log files easier for server.
*Remove old entries by: sudo exportfs -r
Then save changes then export the list to open these nfs folders by: sudo exportfs -a
Then you can view it exported successfully by: sudo exportfs
------------------------------------
You may need to restart the NFS server or reboot the machine entirely and then you can now mount your NFS shares.
Restart NFS with command: sudo systemctl restart nfs-kernel-server
------------------------------------
sudo apt install nfs-common
" ob Debian/Ubuntu or "sudo pacman -S nfs-utils
" on Arch/CachyOS on your client to mount NFS share.
© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.