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

AUTHOR

63       Written by Russell Coker and Jim Meyering.
64

REPORTING BUGS

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

SEE ALSO

78       The full documentation for chcon is maintained as a Texinfo manual.  If
79       the info and chcon programs are properly installed at  your  site,  the
80       command
81
82              info coreutils 'chcon invocation'
83
84       should give you access to the complete manual.
85
86
87
88GNU coreutils 8.4                  June 2018                          CHCON(1)
Impressum