All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Artur M. Piwko" <pipen@pu.kielce.pl>
To: selinux@tycho.nsa.gov
Subject: Re: Role questions
Date: Thu, 23 Sep 2004 16:15:01 +0200	[thread overview]
Message-ID: <4152DA65.7090808@pu.kielce.pl> (raw)
In-Reply-To: <41517FA8.7050207@pu.kielce.pl>

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.

  reply	other threads:[~2004-09-23 14:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22 13:35 Role questions Artur M. Piwko
2004-09-23 14:15 ` Artur M. Piwko [this message]
2004-10-04 15:10 ` Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4152DA65.7090808@pu.kielce.pl \
    --to=pipen@pu.kielce.pl \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.