login as sysadm_r remotely
Gday,
Im trying to allow remote logins via ssh as root to use the sysadm_r role by default. At the moment root logs in using staff_r and newrole -r needs to be executed. I do want to force logins via tty's to default to staff_r though.
Looking at /etc/selinux/context/root_default_contexts i just need to unhash the following
system_r:sshd_t sysadm_r:sysadm_t staff_r:staff_t user_r:user_t
I rebuild the policy, though root still logs in as staff_r via ssh.
Im running debian with selinux-policy-default 1.14-2.
How do i enable this?
Signature · 8 lines
Rene Cunningham DCLabs Pty Ltd http://www.dclabs.com.au -- 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.
I think they built a toggle for this into tunable.te. At least it is there in whatever version I am running on fedora.
Quoted 20 lines · Rene Cunningham
Gday,
Im trying to allow remote logins via ssh as root to use the
sysadm_rrole by default. At the moment root logs in usingstaff_rand newrole -r needs to be executed. I do want to force logins via tty's to default tostaff_rthough.Looking at
/etc/selinux/context/root_default_contextsi just need to unhash the followingsystem_r:sshd_t sysadm_r:sysadm_t staff_r:staff_t user_r:user_t
I rebuild the policy, though root still logs in as
staff_rvia ssh.Im running debian with selinux-policy-default 1.14-2.
How do i enable this?
--
Quoted 9 lines
Rene Cunningham
DCLabs Pty Ltd
http://www.dclabs.com.au--
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.
--
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.
Quoted 2 lines · Ryan Graham
I think they built a toggle for this into tunable.te. At least it is there in whatever version I am running on fedora.
Yes, i did see that option. tunables/tunable.te has the following
define(`ssh_sysadm_login')
Enabling that still doesnt allow me to login as sysadm_r via ssh. I also tried setting the boolean option ssh_sysadm_login
# setsebool ssh_sysadm_login true error setting boolean ssh_sysadm_login to value 1
# getsebool ssh_sysadm_login Error getting active value for ssh_sysadm_login
Signature · 11 lines
Rene Cunningham DCLabs Pty Ltd http://www.dclabs.com.au ---------------------------------------- "Don't fear the pen. When in doubt, draw a pretty picture." --Baker's Third Law of Design. -- 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.
Quoted 4 lines · Rene Cunningham
Im trying to allow remote logins via ssh as root to use the
sysadm_rrole by default. At the moment root logs in usingstaff_rand newrole -r needs to be executed. I do want to force logins via tty's to default tostaff_rthough.
The new policy I have just uploaded to Debian and put on my site permits this. But note that you also need the new checkpolicy to match.
Signature · 9 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.