Difference between revisions of "Redhat: SELINUX Users"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Default Regular Users == In RHEL 6 with a default insall, all regular "Default" users have the same privileges as the root user. This is shown using the semanage. <bas...")
(No difference)

Revision as of 20:10, 17 August 2013

Default Regular Users

In RHEL 6 with a default insall, all regular "Default" users have the same privileges as the root user. This is shown using the semanage.

semanage login -l

Login Name                SELinux User              MLS/MCS Range

__default__               unconfined_u              s0-s0:c0.c1023
root                      unconfined_u              s0-s0:c0.c1023
system_u                  system_u                  s0-s0:c0.c1023

This is confirmed when by running the id -Z command as a regular user:

Needs to be added


SELinux User Roles

Orange Apple
Bread Pie
Butter Ice cream


Confining a user with SELinux

Regular users should be confined by SELinux. If and when user accounts are compromised, SELinux will limit any damage that can be done. To set user michael to the user_u role:

semanage login -a -s user_u michael