So I ran into an issue today where I could not copy a file from my freenas machine down to my local windows machine. The exact error message was:
you need permission to perform this action
you require permission from Unix User\”username” to make changes to this file.
The solution to this problem is to open up your freenas shell window (just navigate to your machine in the browser window, login and hit shell). Once you do that locate the file you want to move and type “chmod 777 filename” and hit enter. That will change the permissions on the file and you will be able to copy it over to your local windows machine.