From FedoraProject

< SELinux(Difference between revisions)
Jump to: navigation, search
(Imported from MoinMoin)
m (1 revision(s))

Revision as of 16:28, 24 May 2008

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.

-c, --changes
like verbose but report only when a change is made

-h, --no-dereference
affect  symbolic links instead of any referenced file (available
only on systems with lchown system call)

-f, --silent, --quiet
suppress most error messages

-l, --range
set range RANGE in the target security context

use RFILE's context instead of using a CONTEXT value

-R, --recursive
change files and directories recursively

-r, --role
set role ROLE in the target security context

-t, --type
set type TYPE in the target security context

-u, --user
set user USER in the target security context

-v, --verbose
output a diagnostic for every file processed

--help display this help and exit

output version information and exit

Report bugs to <>.

The full documentation for chcon is maintained as a Texinfo manual.  If
the  info  and  chcon programs are properly installed at your site, the

info chcon

should give you access to the complete manual.

chcon (coreutils) 5.0              July 2003                          CHCON(1)