Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

PAM Error in Terminal

I'm running Mac OS X 10.4.11 with all the updates applicable to my Mac (a 1.25GHz DP MDD G4), so I hope the fix for this problem does not involve a total re-installation.

When I open Terminal, all I get is a window with the following text:

login: PAM Error: Module is unknown
\[Process exited - exit code 1\]

I cannot type anything in this window, and any new windows opened display exactly the same message. I have seen a few suggested answers on the web but they all relied on being able to enter commands into a Terminal window, so of course these were of no help at all.

I have used Disk Utility to verify the disk and repair permissions and also started up in single-user mode to run fsck, etc. (as displayed on the screen when you start up in single-user mode). No luck there either.

I would greatly appreciate it if someone knows how to fix this problem, with hopefully an explanation of what might have caused it (so that I can take steps to prevent it happening again, if it is something that I did unknowingly).

Quadra 700 - sys 7.0.1•, PowerMac G4 DP 1.25 GHz - sys 10.4.11

Posted on Jun 6, 2009 7:44 PM

Reply
Question marked as Best reply

Posted on Jun 6, 2009 10:08 PM

A PAM module for the login service is unknown.
You'd see the modules list needed by PAM for the login service : read the file /etc/pam.d/login (in Finder : Go Menu, then Go to Folder).
Then look in /usr/lib/pam to see if all the modules are present.
6 replies

Jun 6, 2009 10:21 PM in response to jpimbert

The file /etc/pam.d/login contains the following text:

\# login: auth account password session
auth required pam_nologin.so
auth sufficient pam_securityserver.so
auth sufficient pam_unix.so
auth required pam_deny.so
account required pam_permit.so
password required pam_deny.so
session required pam_uwtmp.so

The folder /usr/lib/pam contains the following files:

pam_deny.so
pam_netinfo.so
pam_afpmount.so

This looks like a mismatch between what is needed and what is actually there.

As my knowledge of Terminal (and UNIX in general) is severely limited, what would be the next course of action?

Jun 7, 2009 12:14 AM in response to Steven Jones

I installed OS X 10.4 on another disk and updated it to 10.4.11. Then copied all the files in the new /usr/lib/pam folder to the existing folder and made a spare copy of the new files in case the same thing happens again. Then I opened Terminal, with no problems. Yay!! I did notice that the original Terminal had version 1.5.1 as its version number, while the version on the temporary fresh installation was 1.5. Until that difference causes a problem, I will assume that it is all working OK.

Thank you for your assistance - this was relatively painless and not as time-consuming as I thought it might be.

Vous êtes un génie. Merci beaucoup.

PAM Error in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.