Slackware HowTo

Configure an NFS server on Slackware

Export directories over the network in a simple and stable way.

1. Goal

Export directories over the network in a simple and stable way.

2. Files and components involved

/etc/exports
/etc/rc.d/rc.rpc
/usr/sbin/exportfs
/srv/nfs

3. Operational flow

mkdir -p /srv/nfs
chmod +x /etc/rc.d/rc.rpc
vi /etc/exports
exportfs -ra
/etc/rc.d/rc.rpc start

4. Operational verification

showmount -e localhost
exportfs -v
mount
grep nfs
ss -lntup

5. Practical notes

After every restart, check listening sockets, logs, permissions, and the users accessing the service.

Before exposing the service in production, test access from a validation host and check any ACLs or firewall rules.

Quick checklist

[ ] Backup or copy of the existing configuration completed
[ ] Files and commands updated as expected
[ ] Local test completed successfully
[ ] Logs or final output verified
[ ] Rollback procedure documented

Back to the Linux HowTo section