Your technology certification is waiting. Enroll in Cloud Class ®
CHCON(1) User Commands CHCON(1)
chcon - change security context
chcon [OPTION]... CONTEXT FILE...
chcon [OPTION]... --reference=RFILE FILE...
Change the security context of each FILE to CONTEXT.
like verbose but report only when a change is made
affect symbolic links instead of any referenced file (available
only on systems with lchown system call)
-f, --silent, --quiet
suppress most error messages
set range RANGE in the target security context
use RFILE’s context instead of using a CONTEXT value
change files and directories recursively
set role ROLE in the target security context
set type TYPE in the target security context
set user USER in the target security context
output a diagnostic for every file processed
--help display this help and exit
output version information and exit
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.