RHCSA-7: EX-200: Restore default file contexts.

By | October 9, 2018

If any file context is changed.we can restore the file context like this

#restorecon -Rv /Path-of-file/FileName

e.g.To restore the original file context of /etc/hosts.allow

simply run this command.

#restorecon -Rv /etc/hosts.allow

To list file context

# ls -lZ /etc/hosts.allow

Video Explanation

Youtube

Share This Post

Leave a Reply

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