Yes, I have that already for user alpha, main group is wheel and auxiliary group is builtin_administrators. :)
@Patrick M. Hausen or anyone else, I think I know why the file permissions are changed, there is a default setting in Samba:
What is the proper way in TrueNAS to change the Samba settings?
I believe is in this service location, is there a terminal way to define the aux parameters?
Edit: The
map archive = No
did not have any effect at service level, nor ar share definition level.
Code:
# testparm -v | grep archive
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
map archive = No
# setfacl -bnR /mnt/default
]# ls -lah /mnt/default/software/cleanup.sh
-rwxrwxr-x 1 root wheel 400B Feb 21 17:30 /mnt/default/software/cleanup.sh
# chmod 0644 /mnt/default/software/cleanup.sh
# ls -lah /mnt/default/software/cleanup.sh
-rw-r--r-- 1 root wheel 400B Feb 21 17:30 /mnt/default/software/cleanup.sh
Next, I set the ACL recursively and test the file permissions, they are back to executable insanity.
Code:
# ls -lah /mnt/default/software/cleanup.sh
-rwxrwxr-x+ 1 root wheel 400B Feb 21 17:30 /mnt/default/software/cleanup.sh