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.

Skriv et svar