I'm in the process of setting up an NFS server on my network. I've installed the software on both the server and client, configured /etc/exports and /etc/hosts, and cannot mount the share on the client. I've read almost every hit DuckDuckGo returned, and still can't figure out what the problem is. I'm probably overlooking something simple, but perhapes I can't see the forest for the trees. On the server:
Code:
~$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/media/stan/USB3_HDD NUC(rw,sync,no_subtree_check)
Code:
~$ sudo systemctl restart nfs-kernel-server
~$ sudo systemctl status nfs-kernel-server
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2020-09-04 16:43:12 CDT; 4s ago
Process: 28196 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 28197 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
Main PID: 28197 (code=exited, status=0/SUCCESS)
Sep 04 16:43:11 chromebox systemd[1]: Starting NFS server and services...
Sep 04 16:43:12 chromebox systemd[1]: Started NFS server and services.
~$ sudo showmount --help
Usage: showmount [-adehv]
[--all] [--directories] [--exports]
[--no-headers] [--help] [--version] [host]
~$ sudo showmount --exports
Export list for chromebox:
/media/stan/USB3_HDD NUC.attlocal.net
On the client:
Code:
stan@NUC:~$ sudo mount -t nfs4 -v 192.168.1.221:/media/stan/USB3_HDD /mnt/share
mount.nfs4: timeout set for Fri Sep 4 16:49:36 2020
mount.nfs4: trying text-based options 'vers=4.2,addr=192.168.1.221,clientaddr=192.168.1.121'
mount.nfs4: mount(2): Permission denied
mount.nfs4: access denied by server while mounting 192.168.1.221:/media/stan/USB3_HDD
stan@NUC:~$ sudo mount -t nfs4 -v chromebox:/media/stan/USB3_HDD /mnt/share
mount.nfs4: timeout set for Fri Sep 4 16:51:30 2020
mount.nfs4: trying text-based options 'vers=4.2,addr=192.168.1.221,clientaddr=192.168.1.121'
mount.nfs4: mount(2): Permission denied
mount.nfs4: access denied by server while mounting chromebox:/media/stan/USB3_HDD
stan@NUC:~$ sudo showmount chromebox -e
Export list for chromebox:
/media/stan NUC.attlocal.net
Server permissions:
Code:
~$ ls -la /media/stan
total 12
drwxr-x---+ 3 root root 4096 Sep 4 17:37 .
drwxr-xr-x 5 root root 4096 Aug 29 14:24 ..
drwxrwxrwx 45 nobody nogroup 4096 Aug 29 14:08 USB3_HDD
What am I missing?