How to reset ACL file permission in linux

HI, I have some files, that I’d like to remove the SELinux context or ACLs from (denoted by a ‘.‘ or a ‘+‘ respectively when using ls -alZ).

xefKI

 

setfacl -b will remove the ACL on a file. setfattr -x security.selinux will remove the SELinux file context, but you will probably have to boot with SELinux completely disabled.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.