[3391] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: I broke my PAM

daemon@ATHENA.MIT.EDU (Michael K. Johnson)
Fri Nov 8 12:57:27 1996

To: redhat-list@redhat.com
From: "Michael K. Johnson" <johnsonm@redhat.com>
In-reply-to: Your message of "Fri, 08 Nov 1996 10:08:06 EST."
             <Pine.SUN.3.91.961108100155.19062H-100000@sol> 
Date: Fri, 08 Nov 1996 12:24:56 -0500
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


gregory j pryzby writes:
>Needless to say, I have hosed PAM.  What can I do or How do I get PAM 
>back working?  I am not against, removing and installign anew the 
>services that require/use PAM...

OK, here's how to re-initialize PAM. log in as root, and trim out all
the enties in the /etc/pam.conf file *except* the DEFAULT and OTHER
entries.  Your /etc/pam.conf should now look about like this:

# The default behavior for services not explicitly listed here:
OTHER   auth     required       /lib/security/pam_deny.so
OTHER   account  required       /lib/security/pam_deny.so
OTHER   password required       /lib/security/pam_deny.so
OTHER   session  required       /lib/security/pam_deny.so

# The default behavior copied when ADDING NEW SERVICES which
# do not have special requirements (like checking rhosts files):
DEFAULT   auth     required       /lib/security/pam_unix_auth.so
DEFAULT   account  required       /lib/security/pam_unix_acct.so
# Do not add more than one password entry unless you know what you
# are doing!
DEFAULT   password required       /lib/security/pam_unix_passwd.so
DEFAULT   session  required       /lib/security/pam_unix_session.so

Now re-install the pam rpm (just in case something was screwed up
somehow that I haven't figured out) with
rpm -Uvh --force <path-to-pam-rpm>

Now re-run that script you mention:
rpm --qf '%{POSTIN}' $(rpm -q --whatrequires pamconfig) | sh -x

At this point, PAM will be reinitialized.  Please let me know
if this does not solve your problem.

michaelkjohnson

"Ever wonder why the SAME PEOPLE make up ALL the conspiracy theories?"



--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post