Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

After sucessfully configuring Kerberos, this is what I've found in /etc/pam.d/common-auth file:

auth    [success=2 default=ignore] nullok_secure
auth    [success=1 default=ignore] krb5_auth krb5_ccache_type=FILE cached_login try_first_pass
auth    requisite             
auth    required              

Does the success=2 control value mean that if the fails, the authentication skips to the auth requisite line or to the last line?

share|improve this question
up vote 10 down vote accepted

From my understanding, success=$num will specify how many rules to skip when successful. So in both cases, with either or, they will skip to the final line. Of course, the final line permits access in all cases.

share|improve this answer
Just to be clear; Lines 1 & 2 will skip to line 4 when either succeeds. Makes sense. – Jamie Apr 21 '10 at 16:18
Thanks for responses to my other PAM questions too: it turns all my questions were moot; I'd restricted ssh logins to a particular list of users and forgot about that when I added domain authentication. When I added Kerberos, it modified the PAM files correctly for AD authentication. – Jamie Apr 21 '10 at 16:24

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.