#! /bin/bash
list=$(df 2>&1 | grep 'Stale file handle' | awk '{print ""$2"" }' | tr -d \:)
$list
for directory in $list
do
umount -l "$directory"
mount -a
done
Go Sharing > Unix Shares > NFS Path > Edit > Advanced Option > add root instead of only mapall User > Save, Thanks it worksI've self-resolved! In FreeNAS, under the share settings, I experimentally set the mapall users setting to root, which makes anyone using that directory access it with root permissions. The issue then went away, giving me full access to the share. To further lock down the security, I created a "Proxmox" user with write permissions, and mapall-users'd that user to the share. Issue resolved!
Thank youI've self-resolved! In FreeNAS, under the share settings, I experimentally set the mapall users setting to root, which makes anyone using that directory access it with root permissions. The issue then went away, giving me full access to the share. To further lock down the security, I created a "Proxmox" user with write permissions, and mapall-users'd that user to the share. Issue resolved!
id $user
chown 1000:1000 /NFS/share
/NFS/share 192.168.1.0/24(rw,subtree_check,insecure,no_root_squash,anonuid=100,anongid=1000)
exportfs -a
sudo mount -t nfs 192.168.1.2:/NFS/share /home/$user/NFS/