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

Is there a way I can make likewise check the passwd file first? Currently, nsswitch.conf does say files first. However, when I tried to log into the box as the root user, it was hanging until I removed the network cable. This was as direct login to the console, so it was a reverse ssh lookup or anything like that.

Something in pam perhaps?

share|improve this question
I would think that with files listed first it would work... any chance there's been a reboot since you changed the order? (assuming that you did) not that that makes sense or should be required. – xenoterracide Nov 13 '09 at 21:08
up vote 1 down vote accepted

Check out /etc/pam.d/system-auth... pam controls authentication, nsswitch.conf does the looking up of uid->name mapping, groups, etc. You'll want the unix pam modules to come before the likewise pam modules.

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.