I just set up FreeNAS on an old desktop to act as an NFS and SMB share for a network of Linux (CentOS 7.?) and Windows 10 systems. I can successfully mount the NFS on the Linux side and read/write the SMB share on the Win10 side. Both point to the same location in my ZFS pool. Unfortunately, there's a quirk to the NFS. If I attempt to copy a file to the NFS (i.e. cp source.file /mnt/nfs_destination), I receive an error:
cp: cannot create regular file '/mnt/nfs_destination/source.file': Operation not permitted
If I do a "ls -al" on the destination folder, I'll see an empty file was created (something along the lines like below):
ls -al /mnt/nfs_destination/
-rwxrwx--- 1 nfsnobody nfsnobody 0 Oct 8 2019 source.file
If I then try the command to copy to the NFS again, it succeeds without an issue. This happens for every file I try to copy to the NFS: operation isn't permitted, but an empty file is created, and succeeds on a retry. Using a graphical desktop environment in Linux, I get the same issue where a dialog appears that the operation wasn't permitted, but if I select retry, it then asks if I want to overwrite the 0 byte file, which succeeds when I say yes.
In short, I can write to the NFS, but not in a way that I would expect. Copying files from and removing files from the NFS works without issue. Touching a file on the NFS works without issue too. What do I have wrong with my setup here? Any help is greatly appreciated!
cp: cannot create regular file '/mnt/nfs_destination/source.file': Operation not permitted
If I do a "ls -al" on the destination folder, I'll see an empty file was created (something along the lines like below):
ls -al /mnt/nfs_destination/
-rwxrwx--- 1 nfsnobody nfsnobody 0 Oct 8 2019 source.file
If I then try the command to copy to the NFS again, it succeeds without an issue. This happens for every file I try to copy to the NFS: operation isn't permitted, but an empty file is created, and succeeds on a retry. Using a graphical desktop environment in Linux, I get the same issue where a dialog appears that the operation wasn't permitted, but if I select retry, it then asks if I want to overwrite the 0 byte file, which succeeds when I say yes.
In short, I can write to the NFS, but not in a way that I would expect. Copying files from and removing files from the NFS works without issue. Touching a file on the NFS works without issue too. What do I have wrong with my setup here? Any help is greatly appreciated!