Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Fixing Linux pam.d issue – Deprecated pam_stack module

Posted by plattapuss on June 17th, 2008

This appeared thousands of times in my log:

CODE:
  1. Deprecated pam_stack module called from service "sshd"

Not just for sshd, but also for pop and pop3 and smtp. Searching Google for a bit I came across this fix:

Change the lines like this:

CODE:
  1. auth    required     pam_stack.so service=system-auth

to this:

CODE:
  1. auth       include      system-auth

Do not change the lines that start with 'account', only the auth lines. You need to remove all occurances of pam_stack.so. Please see below for a more definitive guide and a link to the complete upgrade guide. Change these in each file that contains the bad line in these places:

CODE:
  1. /etc/pam.d/
  2. /home/virtual/site*/fst/etc/pam.d

To quickly find the files that need changing you can issue these commands:

CODE:
  1. grep -l pam_stack.so /etc/pam.d/*
  2. grep -l pam_stack.so /home/virtual/site*/fst/etc/pam.d/*

The original solution can be found here.

From the upgrade guide below:

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.

The original how to can be found here. My apologies for the link above, as it does have the fix, but offers no explanation or how-to for this patching.

Related errors:
Deprecated pam_stack module called from service "pop"
Deprecated pam_stack module called from service "sshd"
Deprecated pam_stack module called from service "smtp"
Deprecated pam_stack module called from service "imap"



Reader Comments

Tnx, we have fixed the problem! =)