Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a Linux pam module that accepts any password for connections from a specific IP. I don't want to disable passwords completely.

I need it for migration from one imap server to another (cyrus to zimbra) without knowing every password. I used such a module some six years ago. That was for imap migration too. Unfortunately I cannot recall the name of the module and can't find it by other means either.

Any pointers?

share|improve this question

Look at the pam_exec module -- this lets you run an external command, and if that command returns success then the module passes. So you could pass it a small shell script do check the source IP address, and you are good to go.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.