linux_wiki:restore_default_file_contexts

This is an old revision of the document!


Restore Default File Contexts

General Information

About this page/how-to/script.


Restore file's default selinux context

restorecon file.txt


Relabel everything on the filesystem on next boot

touch /.autorelabel
  • This restores security context for all directories and files system wide on boot

  • linux_wiki/restore_default_file_contexts.1456802284.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)