Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What does the .autorelabel file located at the file root / do in Linux?

I know its something to do with SELinux but I can't find any information as to what it actually does. I am running CentOS 6.

Thanks in advance.

share|improve this question
Why the downvote? I asked a grammatically correct question with all the relevant information I could give. – GhostInTheSecureShell Sep 27 '12 at 12:00
up vote 6 down vote accepted

Next time when you will reboot the system, it will relabel the filesystem for SElinux automatically.

This usually occurs when labeling a file system for SELinux for the first time, or when switching between different types of policy, such as changing from the targeted to the strict policy.

share|improve this answer
Changing between policy types usually doesn't necessitate a filesystem relabel -- the whole idea is that the files are already labeled semantically, and the policy needs to act on them differently. It's generally used when switching from disabled SELinux to enabled SELinux. – jgoldschrafe Sep 27 '12 at 12:04
Thanks for correction. – Raj Sep 27 '12 at 12:07

More info is provided via the CentOS docs @, under heading 5.3

share|improve this answer

Your Answer


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.