Problem/Question:
- How to properly mount my Samba shares so the ACLs of the said shares are respected and not bypassed?
Goal:
- Mounting my Samba shares automatically regardless of the user logging in and having proper permissions as defined in the ACLs in TrueNAS (I'm open to any way of mounting them as long as it's automatic once setup)
Setup:
- Rocky Linux 9 host
- TrueNAS Server with Samba shares
- Windows Server 2016 used as Domain Controller and Active Directory as directory service
Actions taken:
- Credentials are from a domain administrator, which has full control over the samba shares (as defined in the ACLs)
- Configured
/etc/fstabto mount the Samba shares (tried both as CIFS and as SMB3): - With the
nopermoption, I get access to everything, but it doesn't respect the ACLs and is not the goal - Without the
nopermoption, I can only read files (which is the only permission given to everyone in the TrueNAS ACL for that share), but get "permission denied" even for admin users.
PS:
fstab settings:
//server/share /net/mount_point smb3 uid=0,credentials=/etc/samba/.samba-credentials,iocharset=utf8,vers=3.0,nofail 0 0