Received: from zombie.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id m1MJ3pZe025331 for ; Fri, 22 Feb 2008 14:03:51 -0500 Received: from exchange.columbia.tresys.com (jazzdrum.ncsc.mil [144.51.5.7]) by zombie.ncsc.mil (8.12.10/8.12.10) with SMTP id m1MJ3k29003925 for ; Fri, 22 Feb 2008 19:03:46 GMT Subject: Re: default user roles From: "Christopher J. PeBenito" To: Jeremiah Jahn Cc: selinux In-Reply-To: <1203704148.3669.953.camel@bluejay.goodinassociates.com> References: <1203704148.3669.953.camel@bluejay.goodinassociates.com> Content-Type: text/plain Date: Fri, 22 Feb 2008 14:01:18 -0500 Message-Id: <1203706878.32061.28.camel@gorn> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Fri, 2008-02-22 at 12:15 -0600, Jeremiah Jahn wrote: > I can't seem to get the login to set the proper initial role for a user. > Every time I login, I end up as auditadm, and not secstaff. > > I have the following in my policy: [...] > user secstaff_u roles { secstaff_r secadm_r auditadm_r } level s0 range s0 - s0; You want to make the file /etc/selinux/NAME/contexts/users/secstaff_u with the default contexts that you want. You probably want at least this: system_r:local_login_t:s0 auditadm_r:auditadm_t:s0 system_r:remote_login_t:s0 auditadm_r:auditadm_t:s0 system_r:sshd_t:s0 auditadm_r:auditadm_t:s0 -- Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.