FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2009
    Posts
    20

    pam_tally2 doesn't unlock account

    I have this weird problem I have experienced twice on rhel6, and once on rhel7. Let's say that I have a user account I use to log into the system. We'll call it sys1. What happens, is that the account will lock, and I have to use another account to unlock it. We'll call that account sys2.

    Here is the strange part. I can't ever seem to unlock the account. I can reset it with pam_tally2, I can change the password from root, but I can't log into the account any more. Ever. The password is no longer recognized.

    For example:
    # pam_tally2 --reset
    sys1 5 failed logon attempts
    # pam_tally2
    # passwd sys1
    Password:
    Password:
    All authenticators changed.
    # su - sys2

    sys2> su - sys1
    Password:
    <fails because I use sys1 password>

    sys2> sudo su - sys1
    Password:
    <succeeeds, because I use the sys2 password>

    What I end up doing is creating a new account, say sys3, so that I can have two accounts in case I need to get an account lockout. I have tried deleting the account, and it didn't make any difference. It's almost like it is tracking the lockout somewhere else.

    I've searched, but I'm not really sure how to narrow down this problem. Any ideas?

  2. #2
    Join Date
    Aug 2009
    Posts
    8,464

    Re: pam_tally2 doesn't unlock account

    Did yo specify the user to reset on the pam_tally2 line?

    Code:
    pam_tally2 --user sys1 --reset
    Edit:

    If pam_tally2 doesn't work, try using faillock

    Code:
    faillock --user sys1 --reset

Similar Threads

  1. Anaconda doesn't add a non-root user account?
    By bob p in forum F18 Development
    Replies: 9
    Last Post: 14th December 2012, 01:23 AM
  2. Replies: 0
    Last Post: 9th June 2010, 06:43 AM
  3. Fed 12 pam_tally / pam_tally2
    By kbpower in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 14th December 2009, 11:29 PM
  4. Replies: 1
    Last Post: 3rd June 2007, 08:27 PM
  5. Replies: 0
    Last Post: 16th February 2006, 10:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •