Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] sddm google authenticator
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Sun Aug 28, 2016 7:04 pm    Post subject: [SOLVED] sddm google authenticator Reply with quote

I am trying to use the Google-Authenticator with the SDDM login screen on KDE.

when:
Code:
 /etc/pam.d/system-auth

Code:
 auth required pam_google_authenticator.so


it seems to put the 2 step verification on every single password prompt, including SDDM, which does not seem to offer a graphical option to enter the Google Code.

when:
Code:
auth required pam_google_authenticator.so nullok

or
Code:
auth required pam_google_authenticator.so

in
Code:
/etc/pam.d/sddm-autologin

and
Code:
/etc/pam.d/sddm


sddm does not offer a graphical login option for the 2 step google code.


Last edited by farmer.ro on Mon Aug 29, 2016 3:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Aug 29, 2016 8:10 am    Post subject: Reply with quote

for now i removed sddm from the default runlevel and decided to use startx, because security seems more important then a fancy gui.

if anyone knows how to add google authenticator to the sddm (i know lightdm works) then feel free to post :-)
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Aug 29, 2016 3:06 pm    Post subject: Reply with quote

Gentoo openrc ~amd64 just installed lightdm and want to make it work with google authenticator.
Code:
/etc/pam.d/lightdm
auth required pam_google_authenticator.so

i now get asked for a verification code when logging in to KDE 5 Plasma.
zomg pretty cool

however because i want to use the google authenticator globally
Code:
/etc/pam.d/system-auth
auth required pam_google_authenticator.so


but after the last code i can not seem to login with lightdm anymore, because i think /etc/pam.d/system-auth overrides /etc/pam.d/lightdm

**edit**

workaround would be to put
Code:
auth required pam_google_authenticator

in the desired
Code:
/etc/pam.d/files
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Sat Aug 12, 2017 9:11 pm    Post subject: Reply with quote

Bummer, I found out the hard way that this KDE method won't work for KDE-Plasma. With Plasma you're stuck with running startx and having to not use the regular lock screen. We'll have to wait (or contribute) to this: https://github.com/sddm/sddm/issues/722
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum