Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pam_krb5 breaks sudo/doas. Here's the solution
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
Victor Brand
n00b
n00b


Joined: 13 Apr 2024
Posts: 1

PostPosted: Sat Apr 13, 2024 9:16 pm    Post subject: pam_krb5 breaks sudo/doas. Here's the solution Reply with quote

I've stumbled upon an issue with pam_krb5. When KDC and admin servers are fully configured, it prevents a user from utilizing sudo/doas commands (su - works well though). I've found a solution by using Debian's configuration of pam_krb5 in Gentoo. I modified /etc/pam.d/system.auth in lines where pam_krb5 was mentioned:
Code:

auth      [success=3 default=ignore]      pam_krb5.so minimum_uid=1000 try_first_pass
account      required   pam_krb5.so minimum_uid=1000 try_first_pass
password   [success=1 default=ignore]   pam_krb5.so minimum_uid=1000 try_first_pass
session      [success=1 default=ignore]   pam_krb5.so minimum_uid=1000 try_first_pass

Everything seems to be working as of now.

EDIT: I've slightly modified my solution, because it didn't work well with xscreensaver unlocking. Actually, what I've done is that I removed of the 'debug' option and switched the deprecated 'ignore_root' option to 'minimum_uid=1000'.
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