Fix For Pam

Anything that pertains to Portage

Moderator: Moderators

Post Reply
vince32
Baby Hen
Posts: 17
Joined: Wed Feb 08, 2006 17:22

Fix For Pam

Post by vince32 » Sun Aug 05, 2007 1:59

Fix For PAM

Go to /etc/pam.d and edit the file system-config-lvm removing the timestamp lines. Then you can emerge pam 99.8.1 with no errors.



Vini 8)

wolfden
Sharecropper
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA
Contact:

Post by wolfden » Sun Aug 05, 2007 3:41

actually it can effect more than just that file, to find the files u need to change:

grep pam_timestamp /etc/pam.d/*
grep pam_radius /etc/pam.d/*
grep pam_pwdb /etc/pam.d/*

than make the appropriate changes according to:
http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml

WarraWarra
Sagely Hen
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Post by WarraWarra » Sun Aug 05, 2007 16:46

Out of pure frustration and not make any sense of the gentoo update guide I just deleted the "system-config-lvm" file as the radius and all the other complaints pointed to this file only.
Then it worked.

dukdukgoos
Young Hen
Posts: 35
Joined: Wed Jan 24, 2007 9:39

Post by dukdukgoos » Thu Aug 09, 2007 0:45

wolfden wrote:grep pam_timestamp /etc/pam.d/*
grep pam_radius /etc/pam.d/*
grep pam_pwdb /etc/pam.d/*
I also needed to check for pam_stack and fix according to the instructions from the Gentoo link:

Code: Select all

grep pam_stack /etc/pam.d/*

xt600
Simple Hen
Posts: 94
Joined: Thu Sep 20, 2007 23:08
Location: Southern Brazil

Re:

Post by xt600 » Thu Sep 27, 2007 16:30

wolfden wrote:actually it can effect more than just that file, to find the files u need to change:

grep pam_timestamp /etc/pam.d/*
grep pam_radius /etc/pam.d/*
grep pam_pwdb /etc/pam.d/*


than make the appropriate changes according to:
http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml
None of these files exist under pam.d on my system neither does system-config-lvm. Is it because I did not install samba? Is there a work around to install pam 0.99? Besides waiting for 3.4g?

Maybe someone could interpret this for me? is there a text file to edit somewhere?

From gentoo pam update maunual: "To convert an old configuration file that uses pam_stack into an updated one that works with the include directive, you just need to replace the lines as shown:
Code Listing 1.2: Replace pam_stack usage with the include directive
(The old configuration)
auth required pam_stack.so service=system-auth

(Replace it with this)
auth include system-auth

Important: There are four facilities in PAM configuration: auth, account, password and session. You need to update the configuration files for all of them, not just auth.
Please note that you might also need to reorder the calls when making this change, as sometimes modules like pam_nologin were listed after pam_stack, even though they now need to be listed before the include directive.
Code Listing 1.3: Handling multiple-modules with pam_stack
(Old way)
auth required pam_stack.so service=system-auth
auth required pam_nologin.so

(New way)
auth required pam_nologin.so
auth include system-auth"

Post Reply