adduser??
hi,
i wish to add another user in the system with sysadm_r role and
priviliges.what is the procedure for doing so??
i tried adding to the a new user with sysadm_r role to /policy/users file but it still used the default context for that user.. thanks
samarth
__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com. Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 4 lines · Samarth Sharma
i wish to add another user in the system with
sysadm_rrole and
priviliges.what is the procedure for doing so??
i tried adding to the a new user withsysadm_rrole to /policy/users file but it still used the default context for that
You have to edit /etc/security/default_context.
Also you may want to change the file_context/types.fc to use the sysadm_home_t for the home directory of the user in question and use setfiles to apply the change.
Russell Coker
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
You can also use our seuser tool, included in the download at the bottom of
http://www.tresys.com/selinux.html. It makes sure that you've done the appropriate things when adding a user. It will also examine all of the users defined in the policy and indicate if they are well formed with respect to the policy. The help file and a screen shot are also available on the above page.
David
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Russell Coker
Sent: Wednesday, August 07, 2002 7:05 AM
To: Samarth Sharma; [email protected]
Subject: Re: adduser??
Quoted 4 lines · Samarth Sharma
i wish to add another user in the system with
sysadm_rrole and
priviliges.what is the procedure for doing so??
i tried adding to the a new user withsysadm_rrole to /policy/users file but it still used the default context for that
You have to edit /etc/security/default_context.
Also you may want to change the file_context/types.fc to use the sysadm_home_t for the home directory of the user in question and use setfiles
to apply the change.
Russell Coker
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines
Also you may want to change the file_context/types.fc to use the
sysadm_home_tfor the home directory of the user in question and use setfiles
to apply the change.
I think I would use "chcon <user>:object_r:sysadm_hom_t" if you wanted to change the user's home directory. Running setfiles seems like overkill.
Of course one should also edit file_context/types.fc as suggested so that if setfiles is re-run at some future date, the appropriate labels are applied. What we're doing for labeling in install scripts for new stuff after the system has been installed is: 1) add, install, and load our policy updates,
2) use install -X or chcon to fix those labels we care about, and 3) change/add the appropriate *.fc files to make those labeling changes permanent in case setfiles is run again.
Once we get out the prototype development mode, I would expect setfiles to be run during system install, and then only rarely maybe as part of some recovery process.
Frank
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 8 lines · Frank Mayer
Quoted 4 lines
Also you may want to change the file_context/types.fc to use the
sysadm_home_tfor the home directory of the user in question and use setfiles
to apply the change.I think I would use "chcon <user>:object_r:sysadm_hom_t" if you wanted to change the user's home directory. Running setfiles seems like overkill.
Quoted 7 lines
Of course one should also edit file_context/types.fc as suggested so that if setfiles is re-run at some future date, the appropriate labels are applied. What we're doing for labeling in install scripts for new stuff after the system has been installed is: 1) add, install, and load our policy updates, 2) use install -X or chcon to fix those labels we care about, and 3) change/add the appropriate *.fc files to make those labeling changes permanent in case setfiles is run again.
So do you have patches to adduser to use the correct contexts for files?
Currently I have the following contexts:
/home system_u:object_r:root_t /home/[^/]* -d system_u:object_r:user_home_dir_t /home/.*/.* system_u:object_r:user_home_t /home/[^/]*/.ssh(|/.*) system_u:object_r:user_home_ssh_t
/home/[^/]*/.gnupg(|/.*) system_u:object_r:user_gpg_secret_t
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 8 lines
So do you have patches to adduser to use the correct contexts for files?
Currently I have the following contexts:
/home system_u:object_r:root_t /home/[^/]* -d system_u:object_r:user_home_dir_t /home/.*/.* system_u:object_r:user_home_t /home/[^/]*/.ssh(|/.*) system_u:object_r:user_home_ssh_t/home/[^/]*/.gnupg(|/.*) system_u:object_r:user_gpg_secret_t
No but that's a great idea...having add user use its configuration files to established file contexts for user home dirs based on their default type...just one more item for the wish list.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.