1CHCON(1)                         User Commands                        CHCON(1)
2
3
4

NAME

6       chcon - change file SELinux security context
7

SYNOPSIS

9       chcon [OPTION]... CONTEXT FILE...
10       chcon [OPTION]... [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE...
11       chcon [OPTION]... --reference=RFILE FILE...
12

DESCRIPTION

14       Change  the  SELinux  security  context  of each FILE to CONTEXT.  With
15       --reference, change the security context of each FILE to that of RFILE.
16
17       -h, --no-dereference
18              affect symbolic links instead of any referenced file
19
20       --reference=RFILE
21              use RFILE's security context rather than  specifying  a  CONTEXT
22              value
23
24       -R, --recursive
25              operate on files and directories recursively
26
27       -v, --verbose
28              output a diagnostic for every file processed
29
30       -u, --user=USER
31              set user USER in the target security context
32
33       -r, --role=ROLE
34              set role ROLE in the target security context
35
36       -t, --type=TYPE
37              set type TYPE in the target security context
38
39       -l, --range=RANGE
40              set range RANGE in the target security context
41
42       The  following  options modify how a hierarchy is traversed when the -R
43       option is also specified.  If more than  one  is  specified,  only  the
44       final one takes effect.
45
46       -H     if  a  command  line argument is a symbolic link to a directory,
47              traverse it
48
49       -L     traverse every symbolic link to a directory encountered
50
51       -P     do not traverse any symbolic links (default)
52
53       --help display this help and exit
54
55       --version
56              output version information and exit
57

AUTHOR

59       Written by Russell Coker and Jim Meyering.
60

REPORTING BUGS

62       Report chcon bugs to bug-coreutils@gnu.org
63       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
64       General help using GNU software: <http://www.gnu.org/gethelp/>
65       Report chcon translation bugs to <http://translationproject.org/team/>
66
68       Copyright © 2010 Free Software Foundation, Inc.   License  GPLv3+:  GNU
69       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
70       This  is  free  software:  you  are free to change and redistribute it.
71       There is NO WARRANTY, to the extent permitted by law.
72

SEE ALSO

74       The full documentation for chcon is maintained as a Texinfo manual.  If
75       the  info  and  chcon programs are properly installed at your site, the
76       command
77
78              info coreutils 'chcon invocation'
79
80       should give you access to the complete manual.
81
82
83
84GNU coreutils 8.5                November 2010                        CHCON(1)
Impressum