Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] PAM account locking
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
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Sun Jun 06, 2021 7:37 pm    Post subject: [SOLVED] PAM account locking Reply with quote

I don't want it .. ever.. How do I disable this?

Sudo stops working, I can't login anywhere and I have to reboot.
_________________
"When you do things right, people won't be sure you've done anything at all."


Last edited by vokiel on Sun Jun 06, 2021 8:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 06, 2021 7:44 pm    Post subject: Reply with quote

How does it happen?
_________________
:)
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Sun Jun 06, 2021 7:54 pm    Post subject: Reply with quote

alamahant wrote:
How does it happen?


it's deny=3, it locks everything up when I mess up the password to sudo 3 times.

Quite horrid feature which just makes me want to kill random processes...

Edit: I just have no idea where it's set so I can remove it.
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 06, 2021 8:01 pm    Post subject: Reply with quote

Plz do that
Code:

echo "<username> ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/<username>

This wii enable passwordless sudo
In
/etc/pam.d/system-auth
these are the culprits
Code:

auth            requisite       pam_faillock.so preauth

auth            [default=die]   pam_faillock.so authfail

account         required        pam_faillock.so


maybe you add a very high deny value
Code:

auth            requisite       pam_faillock.so preauth deny=1000

auth            [default=die]   pam_faillock.so authfail deny=1000

account         required        pam_faillock.so


But fedeliallalinea's solution is much more elegant and neat.
_________________
:)


Last edited by alamahant on Sun Jun 06, 2021 8:11 pm; edited 4 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Sun Jun 06, 2021 8:02 pm    Post subject: Reply with quote

Maybe set deny = 0 in /etc/security/faillock.conf?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Sun Jun 06, 2021 8:03 pm    Post subject: Reply with quote

I don't want to disable the password. I want PAM to gtfo.

fedeliallalinea wrote:
Maybe set deny = 0 in /etc/security/faillock.conf?


Ah ha! Pretty sure that's it, thanks a bunch. I'll test it.
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun Jun 06, 2021 8:20 pm    Post subject: Reply with quote

Remove pam. It takes some work.
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Sun Jun 06, 2021 8:26 pm    Post subject: Reply with quote

Tony0945 wrote:
Remove pam. It takes some work.


I wish. Seriously, if there had been a PAM-less installation guide, I would have used it.

/etc/security/faillock.conf is the short hand solution.
_________________
"When you do things right, people won't be sure you've done anything at all."
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