CHCAT(8) User Commands CHCAT(8)NAME
chcat - change file SELinux security category
SYNOPSIS
chcat category file...
chcat -l category user...
chcat [[+|-]category...] file...
chcat -l [[+|-]category...] user...
chcat [-d] file...
chcat -l [-d] user...
chcat -L [ -l ] [ user ... ]
DESCRIPTION
Change/Remove the security category for each file or user.
Use +/- to add/remove categories from a file or user.
Note: When removing a category you must specify '--' on the command line before using the -Category syntax. This tells the command that
you have finished entering options and are now specifying a category name instead.
-d delete the category from each FILE/USER.
-L list available categories.
-l Tells chcat to operate on users instead of files.
SEE ALSO chcon(1), selinux(8), semanage(8)
When operating on files this script wraps the chcon command.
FILES
/etc/selinux/{SELINUXTYPE}/setrans.conf
/etc/selinux/{SELINUXTYPE}/seusers
chcat September 2005 CHCAT(8)
Check Out this Related Man Page
seusers(5) SELinux configuration seusers(5)NAME
seusers - The SELinux GNU/Linux user to SELinux user mapping configuration file
DESCRIPTION
The seusers file contains a list GNU/Linux user to SELinux user mapping for use by SELinux-aware login applications such as PAM(8).
selinux_usersconf_path(3) will return the active policy path to this file. The default SELinux users mapping file is located at:
/etc/selinux/{SELINUXTYPE}/seusers
Where {SELINUXTYPE} is the entry from the selinux configuration file config (see selinux_config(5)).
getseuserbyname(3) reads this file to map a GNU/Linux user or group to an SELinux user.
FILE FORMAT
Each line of the seusers configuration file consists of the following:
[%group_id]|[user_id]:seuser_id[:range]
Where:
group_id|user_id
The GNU/Linux user id, or if preceded by the percentage (%) symbol, then a GNU/Linux group id.
An optional entry set to __default__ can be provided as a fall back if required.
seuser_id
The SELinux user identity.
range
The optional level or range for an MLS/MCS policy.
EXAMPLE
# ./seusers
system_u:system_u:s0-s15:c0.c255
root:root:s0-s15:c0.c255
fred:user_u:s0
__default__:user_u:s0
%user_group:user_u:s0
SEE ALSO selinux(8), PAM(8), selinux_usersconf_path(3), getseuserbyname(3), selinux_config(5)Security Enhanced Linux 28-Nov-2011 seusers(5)
Hello,
I just finished adding a bunch of new users to the linux servers I administer. I add users either via command line or via linuxconf, but I can't seem to find out how to force users to change their passwords on their first login to the system.
Anyone know how to do that? My HP-UX... (1 Reply)
hi all. thanks for looking
i am doing some homework.
one question is that when type
wc
and then how to tell the program that we have finished entering data?
also
why do some operating systems report 22 as the number of bytes in the file above, while others only 20?
thanks so much,... (1 Reply)
Hi Experts,
This may be the wrong category for posting my question, or it could be the perfect category to post. I have no idea how difficult my problem is.
I have python 2.3 installed in my server machine. I am trying to create a web page with python script in it. Now this can be a .html... (1 Reply)
Hi,
I am writing a shell script that needs to remove duplicate lines within a file by category.
example:
section a
a
c
b
a
section b
a
b
a
c
I need to remove the duplicates within th category with out removing the duplicates from the 2 different sections (one of the a's in section... (1 Reply)
This perhaps does not belong in ths category; apologies, however, we have a heated debate going and your input will decide the result.
Should UNIX (HP, AIX, etc) be rebooted following a monthly cycle (Every month, or a qtr, etc.). We have some UX admins (grumps) who say they have seen a UX... (6 Replies)
Hi guys,
Is it correct to say that a website's category is for example web1.0?
or
Is it correct to say that we live in for example web2.0 Internet technology period? (5 Replies)
Hi all,
firstly apologies if this is in the wrong category.
I have been making livecds (fedora based) and to change eg the background i use below in the ks file.
this works fine, however when i install the livecd it loses the changes.
How can i make the changes so that they stay when... (5 Replies)
Hi there, i have a text file like this
category=production
memory=32gb
CPU=2.6ghz
category=uat
memory=16gb
CPU=2.6ghz
memory=32gb
CPU=2.6ghz
memory=8gb
CPU=2.8ghz
Is there... (6 Replies)
Discussion started by: rethink
6 Replies
9. Post Here to Contact Site Administrators and Moderators
Hi,
I submitted my blog on UNIX in the links section. On submitting, i chose the category as Unix/Linux standards, which i now feel is incorrect. I would like to change the category of my link, but i don't find any option to change the category.
Please help me in doing the needful.
Thanks... (7 Replies)
Hi All,
I need some help in parsing out the first (top) data lines of each category (categories are based on the first column a, b, c, d, e.( see example file below) from a big file
a dfg 3 6 8 9
a fgh 5 7 0 9
a gkl 5 2 4 7
a glo 7 0 1 5
b ghj 9 0 4 2
b mkl 7 8 0 5
b jkl 9 0 4 5
c jkl 2... (1 Reply)
Hi all,
I am very new to programming and even newer to this forum as well, so I apologize if this should have been in the Newbie category, but...
I am currently trying to figure out Shell Scripting and am running into problems early. Not having taken any kind of programming class, I am not even... (2 Replies)
Hi,
I have a file and I want the category for each row to be its highest value.
gene highest medium lower lowest
ABC 20 30 50 70
DEF 90 20 60 0
o/p
gene highest medium lower lowest category
ABC... (6 Replies)
Hi all...
As a mere amateur programmer it came to my attention recently of a phrase:-
Cargo Cult Programming...
After reading the wiki on it I think that I may have fallen into this category.
But then, I can only code in my own time and do not do it for a living so
there is always that... (1 Reply)
please help with the following.
I have 4 col data .. instrument , category, variable and value. the instruments belong to particular categories and they all measure some variables (var1 and var2 in this example), the last column is the value an instrument outputs for a variable.
I have used... (0 Replies)