Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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).

I don't have too much time on my hands to read on the , etc on how to use chcon etc., so I just want to quickly know how to disable them all.

Also, if someone knows a SELinux/ACL Cheat-Sheet, that would be terrific.

Here's a screen shot:

alt text

Notice the dots right after the permission symbols: drwxr-xr-x., etc.

share|improve this question
    
What is this ' . ' and ' + ' you are talking about? I don't see anything like that on the -Z specific output of ls. –  Jason Axelson Sep 24 '10 at 3:35
    
maybe you don't use Ext4? I'll post an edit shortly, since this isn't getting any replies. –  polemon Sep 25 '10 at 19:33

2 Answers 2

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.

share|improve this answer

You never stated what you are removing ACL's "from", but if it is a file system, unmounting it and remounting it without the ACL option will do the job quickly.

share|improve this answer
    
I can't remount my root partition just to remove ACL's, I just want to remove them once from a directory. –  polemon Oct 1 '10 at 4:00
    
More details like this in the question would be helpful. –  kmarsh Oct 1 '10 at 17:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.