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 moved password quality checking in Samba from check password script to PAM, now when pam_passwdqc or pam_cracklib deny password change the user revives a "Access denied" error, not the standard "The password you typed does not meet the password policy yada yada" (still mostly untrue when dictionary checking is involved and there are different rules for different lengths).

How I can force Samba to return a "password does not meet policy" error when PAM denies password change? I already use pam password change = yes

Can I make Samba return more specific error and make Windows to show it? e.g.: your password is too short, your password is based on dictionary word, your password needs to also have characters other than letters.

share|improve this question

Samba sends NT_STATUS_* messages to your clients. I don't think it's customizable.

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.