Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264

Summary: sudo(8) gives a PAM warning
Product: Gentoo Linux Reporter: Aaron Malone <aaron>
Component: [OLD] Core systemAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: minor CC: agenkin-gentoo-bugzilla, ykoehler
Priority: Normal    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aaron Malone 2002-01-21 17:51:57 UTC
On a fresh RC6-r14 install (plus a few ports) sudo(8) installed from
app-admin/sudo gives the following warning upon execution:

sudo: pam_setcred: Permission denied

The sudo'ed command appears to execute as normal.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-01-30 13:14:46 UTC
It is most likely because our PAM does not support credentials yet.  Upgrading
PAM or applying some Red Hat patches should fix it.
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-02-01 12:58:02 UTC
*** Bug 439 has been marked as a duplicate of this bug. ***
Comment 3 Brent Cook 2002-02-26 10:39:19 UTC
According to the sudo homepage, http://www.courtesan.com/sudo/current.html, "In Linux-PAM 
0.75, pam_setcred() will return PAM_PERM_DENIED even if the setcred function of the module 
succeeds when pam_authenticate() has not been called." 
 
Sudo 1.6.5p2 works around the problem. 
Comment 4 Daniel Robbins (RETIRED) gentoo-dev 2002-03-06 12:51:44 UTC
Thanks for the info, Brent.  I'm adding the new sudo to cvs right now.