Change the SELinux Context on Linux --- chcon

Опубликовано: 04 Июль 2017
на канале: WPJ852
1,905
6

The chcon command changes the SELinux context for files. However, changes made with the chcon command do not survive a file system relabel, or the execution of the restorecon command. SELinux policy controls whether users are able to modify the SELinux context for any given file. When using chcon, users provide all or part of the SELinux context to change. An incorrect file type is a common cause of SELinux denying access.

Run the chcon -t type file-name command to change the file type, where type is a type, such as httpd_sys_content_t, and file-name is a file or directory name.
Run the chcon -R -t type directory-name command to change the type of the directory and its contents, where type is a type, such as httpd_sys_content_t, and directory-name is a directory name.


Смотрите видео Change the SELinux Context on Linux --- chcon онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь WPJ852 04 Июль 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,905 раз и оно понравилось 6 людям.