Link to home
Start Free TrialLog in
Avatar of TIMFOX123
TIMFOX123Flag for United States of America

asked on

selinux chcon

I am looking for a man page, --help or an info page on a redhat 5 system that gives me a clear example of how to use the chcon command.  I forget the syntax and at work I am on a network that does not permit us checking on the web.  

redhat 5+
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

http://www.linuxcommand.org/man_pages/chcon1.html

CHCON(1)                         User Commands                        CHCON(1)




NAME

       chcon - change security context


SYNOPSIS

       chcon [OPTION]... CONTEXT FILE...
       chcon [OPTION]... --reference=RFILE FILE...


DESCRIPTION

       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

       --reference=RFILE
              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

       --version
              output version information and exit

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Sandy
Sandy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TIMFOX123

ASKER

great job and sorry for me not getting back