SELinux and "su -"

This is a discussion on SELinux and "su -" within the Linux Administration forums, part of the Linux Forums category; When logging in via ssh, then su - to root user. I am in the wrong context. I stay in as ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-13-2004
Ken K
 
Posts: n/a
Default SELinux and "su -"

When logging in via ssh, then su - to root user. I am in the wrong
context. I stay in as user_u:user_r:user_t rather than moving to
root:staff_r:staff_t. I would figure that root would go into its
default context then I would be allowed to newrole -r sysadm_r to handle
sysadmin tasks. Instead, when trying to to newrole -r sysadm_r, I get
the error user_u:sysadm_r:sysadm_t is an invalid context -- which I
would expect since I am still user_u after su'ing over. Is there a way
to get around this particular problem. I do not want to give user_u the
ability to have a sysadm context. I would rather I could get the actual
"root" context when I su over.

Hope that made sense. I'm new to SELinux (on Gentoo FYI) and trying to
get my head around the whole administration of it.

TIA

Ken
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0