Research
.
Skip Search Box

SELinux Mailing List

Re: Role questions

From: Artur M. Piwko <pipen_at_pu.kielce.pl>
Date: Thu, 23 Sep 2004 16:15:01 +0200


Artur M. Piwko wrote:
> 1. When I su - from myuser:staff_r:staff_t to root I'm still myuser,
> instead of root:staff_r:staff_t. What I did wrong?

Still working on it.

Naturally users are defined in /etc/selinux/src/users.

user root roles { staff_r sysadm_r ifdef(`direct_sysadm_daemon', `system_r') };
user myuser roles { staff_r sysadm_r ifdef(`direct_sysadm_daemon', `system_r') };

> 2. How can one set up initial sysadm_r password? All i see is:
>
> # newrole -r sysadm_r
> Authenticating myuser.
> newrole: incorrect password for myser
>

I browsed newrole.c. The problem was PAM. This is what /etc/pam.d/newrole looked like after policycoreutils installation:

auth     required  /lib/security/$ISA/pam_stack.so service=system-auth
account  required  /lib/security/$ISA/pam_stack.so service=system-auth
password required  /lib/security/$ISA/pam_stack.so service=system-auth
session  required  /lib/security/$ISA/pam_stack.so service=system-auth
session  optional  /lib/security/$ISA/pam_xauth.so

None of the libs were present. Removing these lines helped. Same apply to /etc/pam.d/run_init.

-- 
Artur M. Piwko : AMP29-RIPE : ISPC:+48413496205 : jab:pipen@jabberpl.org
Akademia Swietokrzyska  ::  Uczelniane Centrum Informatyczne  ::  Kielce
PGP id:B969478F finger:35E6 E3A3 8120 F000 1375 5A1C 23A8 1A71 B969 478F
"Death is just life's way of telling you you've been fired"  --  unknown

--
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.
Received on Thu 23 Sep 2004 - 10:12:35 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service