[CentOS] Re: su, context(selinux?) 2nd prompt

Mon Jan 23 18:33:37 UTC 2006
Rex Dieter <rdieter at math.unl.edu>

Daniel J Walsh wrote:

 >>> On Mon, 23 Jan 2006, Rex Dieter wrote:
 
 >>>> With a recent update of CentOS4, su's behavior has changed, in that
 >>>> after
 >>>> prompting for password, also prompts for (selinux?) context.  I'm
 >>>> seeing something like:
 >>>> $ su
 >>>> Password:
 >>>> Your default context is root:system_r:unconfined_t.
 >>>>
 >>>> Do you want to choose a different one? [n]
 >>>>
 >>>> kde's kdesu barfs on this second prompt.  Any way to disable this
 >>>> second prompt?

 > Remove multiple from the pam file.

editing /etc/pam.d/su, changing
session    required     /lib/security/$ISA/pam_selinux.so open multiple
to
session    required     /lib/security/$ISA/pam_selinux.so open

Did the trick, thanks Daniel!

# rpm -q -f /etc/pam.d/su
coreutils-5.2.1-31.2

A bug in coreutils-5.2.1-31.2 then?

-- Rex