Freenas permission denied when creating files - how to set permissions?

I am running FreeNAS as a VM. My permissions were not sticking.

I went to the FreeNAS server and opened a shell.

Run zfs list to find the path.

cd /PATH

Find the directory that needs changing.

Since I didn't have anything in that directory I was able to use a -R in the following for recursive:

chown -R nobody:nogroup directory

ls -l # to verify

Ctrl+d to get out.

Worked perfectly.


Set Authentication to Anonymous in CIFS/SMB|Settings and remove check from "Set read only" checkbox when you create a share. That should do. Though in FreeNas you cannot always get away with GUI setup only. In that case you can run "chmod" from Advanced|Command.