chcon's Examples

Changes SELinux context of file

chcon -t httpd_sys_content_t file.txt

Changes the SELinux security context of a file.

chcon -t httpd_sys_content_t /var/www/html/index.html

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us