Remove ACLs in Linux permissions
You should also have found this setfacl
option:
-b, --remove-all remove all extended ACL entries
So in order to remove ACLs just run setfacl -b -R
on the directory, and chmod g=rwx
afterwards. (Fixing group permissions might be needed, because currently your changes actually went to changing the ACL 'mask' instead.)
Note that Samba directly exposes POSIX permissions and ACLs to SMB clients (translating them to SMB/NTFS ACLs), so the same could be done from Windows by manually removing all except the 3 "Unix" access entries.
Related videos on Youtube
thecomputerguru
Updated on September 18, 2022Comments
-
thecomputerguru over 1 year
I have files that have a plus sign next to the permissions
-rwxrwx---+
on a Linux samba server. I found the setfacl command to adjust the acl settings, I would like to remove the ACL completely, instead of having to adjust acl settings. How can I do this, so that users can access the files that they need, and the permissions would show-rwxrwx---
, in Linux? -
lucaferrario about 3 yearsIf you have defaults set, I suggest to run a
setfacl -b -R -d
too, aftersetfacl -b -R
, to be sure to have deleted any ACL