Mount_nfs Operation not permitted (from Jail)

Hi, in a TrueNAS CORE 13.0-U6.1 I enabled NFS service and shared a directory.
From the server I can mount this directory without issues, but from a jail (with allow_mount set to true) when I run this:

mount -t xxx.yyy.zzz.hhh:/share/on/server /mnt/mymount

Y get: mount_nfs: /mnt/mymount: Operation not permitted.

How can I debug this?

I must add. In the NFS share configuration, in Advanced Options I adde the authorized networks and hosts.

You can use iocage fstab to have the mount performed automatically at jail startup from outside the jail.

Hi @pmh, I don’t really need to mount that NFS share into the jail. I’m trying to debug an Issue I have when trying to mount that share from a Windows 11 machine (with NFS client installed).

The issue is as follows:
using: mount -o anon \\<IP>\share Z: from the windows cmd, the share is mounted, but when I try to open it I get a permission denied error.
In /var/log/messages there’s nothing to guide me to the real problem.

I did not know Windows supported NFS - sorry, no idea. I’m not a Windows user.

Yes, me neither, but as the server is TrueNAS, I would like to know if is there a log file where I can see if there are some errors logged.

Now it works. It turns out the dataset to be shared, had an ACL for @everyone, but for some reason I had to click on Save/Apply again (without changing anything) to let the client mount and access files.