NFS-Kernel Server _ Linux File Sharing Configuration
NFS-Kernel Server _ Linux File Sharing Configuration
The NFS (Network File System) Kernel Server is a critical component in Unix/Linux
environments that allows file sharing between systems on a network. Developed by Sun
Microsystems in the 1980s, NFS enables a client machine to access files on a remote server
as though they were local. This capability makes it an essential tool for managing resources
in both small and large-scale deployments.
https://blog.geekinstitute.org/2024/11/nfs-kernel-server-linux-file-sharing.html 1/5
2/5/25, 3:27 PM NFS-Kernel Server : Linux File Sharing Configuration
Prerequisites
On Ubuntu/Debian:
On CentOS/RHEL:
https://blog.geekinstitute.org/2024/11/nfs-kernel-server-linux-file-sharing.html 2/5
2/5/25, 3:27 PM NFS-Kernel Server : Linux File Sharing Configuration
Edit the /etc/exports file to define shared directories and access permissions. Example
configuration:
/home/shared 192.168.1.0/24(rw,sync,no_subtree_check)
Explanation of options:
Applying Changes
sudo exportfs -a
Client-Side Configuration
On Ubuntu/Debian:
On CentOS/RHEL:
sudo exportfs -v
Troubleshooting NFS
Permissions Issues
https://blog.geekinstitute.org/2024/11/nfs-kernel-server-linux-file-sharing.html 4/5
2/5/25, 3:27 PM NFS-Kernel Server : Linux File Sharing Configuration
Firewall Blocks
Best Practices
Use firewall rules and IP restrictions to enhance security.
Implement UID/GID mapping for proper user management.
Regularly monitor logs for suspicious activity.
https://blog.geekinstitute.org/2024/11/nfs-kernel-server-linux-file-sharing.html 5/5