So I already describe this in another post and there are various guides on the intarwebz: 1, 2.

But I wanted to point out one thing. For ubuntu, the pam_access line wasn’t working in pam.d/common-auth, where I usually put it, nor was it working in pam.d/login.
But, it worked in /etc/pam.d/common-account !!!

Just throw it below the,

account [success=1 newauthtokreqd=done default=ignore] account requisite account required account required

^is kinda what mine looks like :)

Blog Logo

Mario Loria




Because gets old after a while.

Back to Overview