Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
50.2.13. Changing to a Different Role
You use the
newrolecommand to run a new shell with the specified type and/or role. Changing roles is typically only meaningful in the strict policy; the targeted policy is generally restricted to a single role. Changing types may be useful for testing, validation, and development purposes.
newrole -r <role_r> -t <type_t> [-- [ARGS]...]
ARGSare passed directly to the shell specified in the user's entry in the
newrolecommand is part of the
policycoreutils-newrolepackage, which is required if you install the strict or MLS policy. It is not installed by default in Red Hat Enterprise Linux.