49.5.4.
~]# chcat -l -- +Marketing james ~]# chcat -l -- +Finance,+Payroll daniel ~]# chcat -l -- +Personnel olga
~]# chcat -L -l daniel james olga
daniel: Finance,Payroll
james: Marketing
olga: Personnel
# Create a user account for the company director (Karl) ~]# useradd karl ~]# passwd karl Changing password for user karl. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. # Assign the user account to an SELinux login ~]# semanage login -a karl # Assign all the MCS categories to the new login ~]# chcat -l -- +Marketing,+Finance,+Payroll,+Personnel karl
~]# chcat -L -l daniel james olga karl
daniel: Finance,Payroll
james: Marketing
olga: Personnel
karl: Marketing,Finance,Payroll,Personnel
注記