SOLVED FreeNAS Permissions Storing

Alpha-Inc.

Dabbler
Joined
Feb 15, 2021
Messages
25
I hope I don't violate any rules on this sub to ask such a trivial question but I haven't found an exact answer (maybe i did search with the wrong tags).

I have created a dataset with some files and set an owner and the associated ACL). Since some files have specific file permissions I disabled inheritance for those file via Windows Explorer and set unique permissions (different files have read-permissions for different users). In a case of the Systemdrive breaking and setting up a new FreeNAS server with imported pool, do the SMB-Shares still be in place? If yes, where are they stored ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
In a case of the Systemdrive breaking and setting up a new FreeNAS server with imported pool, do the SMB-Shares still be in place? If yes, where are they stored ?
SMB share information is kept as part of the config (which can be backed up from System | General).

If you need to rebuild your boot pool, you can just restore a recent config. The file permissions (ACLs) are stored on the data pool with the files.
 

Alpha-Inc.

Dabbler
Joined
Feb 15, 2021
Messages
25
SMB share information is kept as part of the config (which can be backed up from System | General).

If you need to rebuild your boot pool, you can just restore a recent config. The file permissions (ACLs) are stored on the data pool with the files.
Thanks for your reply. Just want to be sure, are you talking about the ACLs (including ACL Type, Permissions Type, Permissions, Flags Type and Flags) which are stored in the Config or are you talking about the actual individual Windows SMB/NTFS Permissions (read, wright, execute, modify, full control)?

If you're talking about the ACLs I knew that but I wanted to know where the SMB/NTFS Permissions are stored. (sorry for the bad description in the first post of my thread).
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
SMB share permissions and other share parameters are in the config. File and directory permissions (including for NTFS ACLs) are stored in ACL entries on the disk together with the files.
 

Alpha-Inc.

Dabbler
Joined
Feb 15, 2021
Messages
25
SMB share permissions and other share parameters are in the config. File and directory permissions (including for NTFS ACLs) are stored in ACL entries on the disk together with the files.
Ah okay. Do the File- and directory permissions have their own directory where they are stored or are they embedded in the files? If so, how come that the file-size (at least in my case) does not change when editing them?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Ah okay. Do the File- and directory permissions have their own directory where they are stored or are they embedded in the files? If so, how come that the file-size (at least in my case) does not change when editing them?
They aren't visible in the filesystem (and aren't part of the files themselves). You can view them with getfacl and set them with setfacl.
 
Top