1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH CHCON "1" "January 2016" "GNU coreutils 8.25" "User Commands"
4 chcon \- change file security context
7 [\fI\,OPTION\/\fR]... \fI\,CONTEXT FILE\/\fR...
10 [\fI\,OPTION\/\fR]... [\fI\,-u USER\/\fR] [\fI\,-r ROLE\/\fR] [\fI\,-l RANGE\/\fR] [\fI\,-t TYPE\/\fR] \fI\,FILE\/\fR...
13 [\fI\,OPTION\/\fR]... \fI\,--reference=RFILE FILE\/\fR...
15 .\" Add any additional description here
17 Change the SELinux security context of each FILE to CONTEXT.
18 With \fB\-\-reference\fR, change the security context of each FILE to that of RFILE.
20 Mandatory arguments to long options are mandatory for short options too.
23 affect the referent of each symbolic link (this is
24 the default), rather than the symbolic link itself
26 \fB\-h\fR, \fB\-\-no\-dereference\fR
27 affect symbolic links instead of any referenced file
29 \fB\-u\fR, \fB\-\-user\fR=\fI\,USER\/\fR
30 set user USER in the target security context
32 \fB\-r\fR, \fB\-\-role\fR=\fI\,ROLE\/\fR
33 set role ROLE in the target security context
35 \fB\-t\fR, \fB\-\-type\fR=\fI\,TYPE\/\fR
36 set type TYPE in the target security context
38 \fB\-l\fR, \fB\-\-range\fR=\fI\,RANGE\/\fR
39 set range RANGE in the target security context
41 \fB\-\-no\-preserve\-root\fR
42 do not treat '/' specially (the default)
44 \fB\-\-preserve\-root\fR
45 fail to operate recursively on '/'
47 \fB\-\-reference\fR=\fI\,RFILE\/\fR
48 use RFILE's security context rather than specifying
51 \fB\-R\fR, \fB\-\-recursive\fR
52 operate on files and directories recursively
54 \fB\-v\fR, \fB\-\-verbose\fR
55 output a diagnostic for every file processed
57 The following options modify how a hierarchy is traversed when the \fB\-R\fR
58 option is also specified. If more than one is specified, only the final
62 if a command line argument is a symbolic link
63 to a directory, traverse it
66 traverse every symbolic link to a directory
70 do not traverse any symbolic links (default)
73 display this help and exit
76 output version information and exit
78 Written by Russell Coker and Jim Meyering.
80 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
82 Report chcon translation bugs to <http://translationproject.org/team/>
84 Copyright \(co 2016 Free Software Foundation, Inc.
85 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
87 This is free software: you are free to change and redistribute it.
88 There is NO WARRANTY, to the extent permitted by law.
90 Full documentation at: <http://www.gnu.org/software/coreutils/chcon>
92 or available locally via: info \(aq(coreutils) chcon invocation\(aq