This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Another ACL \ Permission issue, Plus other issues

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
kjbuente
Starter
Starter
Posts: 30
Joined: 06 Jan 2016 04:21
Status: Offline

Another ACL \ Permission issue, Plus other issues

Post by kjbuente »

Firstly, I am running the latest version of NAS4Free and I am authenticated to a domain.
I have seen two other posts saying that they are having issues with ACLs and Permissions. I too am having issues, they are kinda the same kinda different. My inherited permissions properly apply 90% of the time. When it does not, it is with file downloads from a web browser (Suspect this is due to writing to a temp file then 'moving' instead of 'copying' to the correct filename), Hidden system files like '$RECYCLE.BIN' and 'Thumbs.DB', but Desktop.ini will be correct. I can manually go through and set the proper permissions and ACLs only to have them go back to the messed up versions later.

My home directory example:

Code: Select all

Root dir unix permissions are d---rwx---+ user domain_admins Directory, sub dirs will be the same except the user will be the domain user that created it.

Root Dir ACLs as Follows: (These are all to be inherited)
(ALLOW) Domain Admins: Full Control (This folder + Sub Folders & Files)
(ALLOW) User: Full Control-Change-minus-Change Permissions (Sub Folders & Files only)

The user can create any directory or file and the permissions take fine. Except $RECYCLE.BIN & Thumbs.db. Those all have the permissions of...
(DENY) User: List folder / Read data: (This Folder Only) <- Where did this come from?
(ALLOW) User: Full Control -minus- Change Permission (This Folder + Subs & Files) <-Correct IF it was inherited.
(ALLOW) User: Full Control -minus- List Folder / Read data & Delete (This Folder Only) <- Where did this come from?
(ALLOW) Domain Admins: Read & Execute, List, & Read (This Folder Only) <-Not Correct, should be Full Control
(ALLOW) Everyone: Transverse & Read (This Folder Only) <- Where did this come from?
(ALLOW) Domain Users: Transverse & Read (This Folder Only) <- Where did this come from?

None of those are inherited permissions, all explicit. If you manually set the permission to the correct ones, it will revert back to these. 
My .recycler directory Example

Code: Select all

Root dir unix permissions are d---rwx---+ user domain_admins Directory, sub dirs will be the same except the user will be the domain user that created it.

(ALLOW) Domain Admins: Full Control (This folder + Sub Folders & Files)
(ALLOW) Owner: Full Control-Change-minus-Change Permissions (Sub Folders & Files only)

The User can NOT create a new directory without getting a permission denied, then 3 New Folder will appear. The system CAN create it and WITH THE CORRECT ACLs! Except the user can not access it, they receive a access denied. 
Once I change the unix permissions to 770, everything works. Until the folder is deleted due to cleanup scripts and is created again.
I also noticed that I have these errors in the log:
winbindd[3174]: Failed to find domain ''. Check connection to trusted domains!
smbd[51118]: unknown interface
smbd[51332]: pcap cache not loaded
smbd[72551]: recycle: mkdir failed for .recycle/user/user with error: Permission denied
smbd[9199]: [2016/10/26 09:17:24.759242, 0] ../source3/rpc_server/srv_pipe.c:721(api_pipe_bind_req)
Plus one about unable to find a SID, I forgot to copy that one out of the log file.

I also have a strange issue of when I apply changes in Samba (plus FTP and NFS), my entire system reboots... I can restart the services via command line without issue though.
SuperMicro 846 Chassis + 1200W Redundant PSUs + "A" model Backplane , SuperMicro X10SRL-F Motherboard, 512GB ECC RAM, Xeon E5 1650v3, 24*8TB WD Red Pro, 4 RaidZ2 Vdevs, 2 IBM M1015 Cross Flash to IT Mode, 2 IBM 46M0997 SAS Expanders, Dual port 10Gb Intel X560. RootOnZFS.

SuperMicro 846 Chassis + 1200W Redundant PSUs + SAS3-846-EL2 Backplane , SuperMicro X10SRL-F Motherboard, 512GB ECC RAM, Xeon E5 1650v3, 24*SanDisk Lightening 800GB 12Gbps SSDs, 12 Mirror vDevs, 4 Intel Optane 32GB NVMe drives (SLOG),Dual port 40Gb Intel XL710. RootOnZFS.

kjbuente
Starter
Starter
Posts: 30
Joined: 06 Jan 2016 04:21
Status: Offline

Re: Another ACL \ Permission issue, Plus other issues

Post by kjbuente »

I made some progress. I turned OFF "Inherit ACLs" for the samba shares and Set ACL Mode and Inherit to 'Pass Through' on the ZFS dataset. This allowed users to access their recycle bins again. The permissions are still off. The same goes with Thumbs.DB. Files downloaded via a browser are correct however.

The new permissions are:

Code: Select all

(ALLOW)User:Full Control -minus- Change Permissions(This Folder and Subs + Files) <- Correct BUT it is explicit permission and should be inherited.
(ALLOW)User:Full Control -minus- Change Permissions(This Folder Only) <- Huh? Seems redundant...
(ALLOW)Domain Admins:Read, List, and Read & Exec (This Folder Only) <- Should be Full control and inherited
(ALLOW)Everyone:Read, List, and Read & Exec (This Folder Only) <- Undesired
My Samba .recycle folder is function as well. That required deleting the folder and setting the permissions as 777 (yuk) then letting samba do it's thing. The ACLs that the user dir & files get are almost exactly the same as about, except the second user permission does not exist.
SuperMicro 846 Chassis + 1200W Redundant PSUs + "A" model Backplane , SuperMicro X10SRL-F Motherboard, 512GB ECC RAM, Xeon E5 1650v3, 24*8TB WD Red Pro, 4 RaidZ2 Vdevs, 2 IBM M1015 Cross Flash to IT Mode, 2 IBM 46M0997 SAS Expanders, Dual port 10Gb Intel X560. RootOnZFS.

SuperMicro 846 Chassis + 1200W Redundant PSUs + SAS3-846-EL2 Backplane , SuperMicro X10SRL-F Motherboard, 512GB ECC RAM, Xeon E5 1650v3, 24*SanDisk Lightening 800GB 12Gbps SSDs, 12 Mirror vDevs, 4 Intel Optane 32GB NVMe drives (SLOG),Dual port 40Gb Intel XL710. RootOnZFS.

Post Reply

Return to “CIFS/SMB (Samba)”