How to log in with Google Authentication Only?

ITSMGuy

New Member
Joined
Jan 6, 2022
Messages
10
Reaction score
0
Credits
111
I've set up Google authenticator to work properly for those users that have set it up but I want to only use authenticator as the authentication. How do I disable password authentication?
 


mrcrossroads

Silver Member
Silver Supporter
Joined
Nov 23, 2017
Messages
375
Reaction score
337
Credits
2,171
I've set up Google authenticator to work properly for those users that have set it up but I want to only use authenticator as the authentication. How do I disable password authentication?
For logging into your PC? Don't think it's possible.
 
OP
I

ITSMGuy

New Member
Joined
Jan 6, 2022
Messages
10
Reaction score
0
Credits
111
I found it.

in /etc/pam.d/gdm-password replace
auth required pam_succeed_if.so user != root quier_success with
auth sufficient pam_succeed_if.so user != root

Or you can create a group and use passwordless authentication based on group by replacing the above with
auth sufficient pam_succeed_if.so user ingroup GROUPNAME

Add the users to that group and restart gdm 'systemctl restart gdm'

Of course, to enable google authenticator in the first place you have to install it:

Debian:
apt install libpam-google-authenticator

Fedora:
dnf install google-authenticator

Each user has to run 'google-authenticator' and follow the prompts.
 

mrcrossroads

Silver Member
Silver Supporter
Joined
Nov 23, 2017
Messages
375
Reaction score
337
Credits
2,171
I found it.

in /etc/pam.d/gdm-password replace
auth required pam_succeed_if.so user != root quier_success with
auth sufficient pam_succeed_if.so user != root

Or you can create a group and use passwordless authentication based on group by replacing the above with
auth sufficient pam_succeed_if.so user ingroup GROUPNAME

Add the users to that group and restart gdm 'systemctl restart gdm'

Of course, to enable google authenticator in the first place you have to install it:

Debian:
apt install libpam-google-authenticator

Fedora:
dnf install google-authenticator

Each user has to run 'google-authenticator' and follow the prompts.
That's awesome! Keep us posted how it goes.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Staff online

Members online


Latest posts

Top