MFVX Posted July 11, 2012 Share Posted July 11, 2012 I have enabled google-2-step authentication on /etc/pam.d/sshd , but I want to know if there is any way I can create an exception to allow some specific users to login without using this method of authentication. Quote Link to comment Share on other sites More sharing options...
MFVX Posted July 11, 2012 Author Share Posted July 11, 2012 (edited) Ok, there is a fix for this here . It uses a patch . I can't guarantee this patch is safe, but it seems to work fine on my Centos installation. wget http://google-authenticator.googlecode.com/files/libpam-google-authenticator-1.0-source.tar.bz2tar -xvfcd libpam-google-authenticator-1.0nano ignore_nofile.patch#paste the contents of the patch, then ctrl + x, Y.patch < ignore_nofile.patchmakemake installservice sshd restart[/CODE]Then, if the user you are trying to login haven't set up his 2-step authentication with[CODE]google-authenticator[/CODE]The system will jump to password authentication. Edited July 11, 2012 by MFVX Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.