Skip to contentSkip to conversation

Few questions related to Selinux on Redhat 8.0

DISCUSSION Rakesh Tripathi 2 participants 3 messages Jul 21, 2003 – Jul 22, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi All,
I have got few questions related to Selinux on Redhat 8.0 . I have done make quickinstall to build selinux .
New to selinux so please pardon my ignorance.
Here are my questions
1.) How do I add new user to the system ?
I tried using suseradd utility and I can see my user being added to the /etc/passwd file but when I try to login directly on the machine or through ssh it says incorrect password . Is there any thing more I need to do ?

2.) I want only certain users to be able to run a particular application . For example I want user Joe to be able to run java. Can any one tell me how can I go about doing it or can some one point me to some documentation.

Thanks
Rakesh

#1 lore raw
Quoted 4 lines · Rakesh Tripathi

1.) How do I add new user to the system ?
I tried using suseradd utility and I can see my user being added to the /etc/passwd file but when I try to login directly on the machine or through ssh it says incorrect password . Is there any thing more I need to do ?

Did you use "adminpasswd" to change the user's password after creating the user?

Quoted 3 lines

2.) I want only certain users to be able to run a particular application . For example I want user Joe to be able to run java. Can any one tell me how can I go about doing it or can some one point me to some documentation.

Do you just want an option as to whether the program is to be run or not? Or do you also want to have it run in a different security context?

If the former then edit the policy to add a new file_type for the file and have policy to allow only appropriate user domains to read/execute it.

Then edit an appropriate file_contexts file (maybe types.fc) to add an entry for it.

Load the policy and relabel the file and it should work.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

Russell ,
thanks for the response .
I have not changed the user passwd and i reloaded the policy after i added the user.

Thanks
rakesh

----- Original Message -----
From: "Russell Coker" <[email protected]>
To: "Rakesh Tripathi" <[email protected]>; <[email protected]>
Sent: Tuesday, July 22, 2003 12:54 PM
Subject: Re: Few questions related to Selinux on Redhat 8.0

Quoted 4 lines · Rakesh Tripathi
Quoted 3 lines

1.) How do I add new user to the system ?
I tried using suseradd utility and I can see my user being added to the /etc/passwd file but when I try to login directly on the machine or

through

Quoted 6 lines
Quoted 1 line

ssh it says incorrect password . Is there any thing more I need to do ?

Did you use "adminpasswd" to change the user's password after creating the user?

Quoted 1 line

2.) I want only certain users to be able to run a particular application

.

Quoted 1 line
Quoted 1 line

For example I want user Joe to be able to run java. Can any one tell me

how

Quoted 3 lines
Quoted 1 line

can I go about doing it or can some one point me to some documentation.

Do you just want an option as to whether the program is to be run or not?

Or

Quoted 6 lines

do you also want to have it run in a different security context?

If the former then edit the policy to add a new file_type for the file and have policy to allow only appropriate user domains to read/execute it.

Then edit an appropriate file_contexts file (maybe types.fc) to add an

entry

Quoted 12 lines

for it.

Load the policy and relabel the file and it should work.

--

http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.