Permissions Error

andrema2

Explorer
Joined
Aug 3, 2011
Messages
83
Hi

I mistakenly create a pool as a Windows type. Now I'm facing issues with my mac not having permission to write files no certain folders that I own.

I tried to change the type from Windows to Mac and Unix and both give me operation not allowed when chmod runs.

If I look the owner of the folders they are correctly set. I can delete folders, but I can chmod it.

It's a large number of folders and sub folders. How can I fix it ?

Thanks
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Which version of FreeNAS are you using? What is the output of ls -l /mnt on your FreeNAS host? Does the listing show a "+" at the end of the permission bits for your top level dataset?

Here's an example, where the pool name is "NasPool" and the top level dataset was been given a "Windows share type":

Code:
root@freenas:/mnt # ls -l
total 21
drwxr-xr-x   9 root  wheel  10 Apr 16 10:09 iocage
-rw-r--r--   1 root  wheel   5 Mar 28 15:49 md_size
drwxrwxr-x+ 11 root  wheel  12 May  1 08:52 NasPool
root@freenas:/mnt #

The FreeNAS system has added an exended ACL to dataset NasPool with default windows permission.

If this is what's happened in your case, and If you have not tried to make any changes recursively, follow these steps to undo the mistake:

1. Via the WEBUI, set the toplevel dataset back to "MAC" ACL type and set the the permission you want on the toplevel dataset, but do NOT apply them recursively. Save your changes.
2. At the FreeNAS shell use this command: setfacl -b /mnt/NasPool, replacing "NasPool" with your own pool name.
 
Top