Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-23-2008, 11:59 AM   #1
Registered: Apr 2008
Posts: 108

Rep: Reputation: 15
Smile Using RHEL 64bit Not sure how to unlock an account

I setup the system_auth file to lock / deny accounts after 3 failed attempts. Accounts now lock after failed attempts but I can not unlock them. I tried to use the command faillog -u testuser -r but the response is the cursor just drops to the next screen.

Am I typing the correct command entry or is there a GUI interface? When I viewed the account under Users and Groups utility nothing is checked as locked or disabled.

Any help would be appreciated. A million thanks
Old 04-23-2008, 12:48 PM   #2
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,189

Rep: Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406Reputation: 4406
Check out the man page for passwd. I think you're looking for:

passwd -u <user name>
Old 04-24-2008, 06:26 AM   #3
Registered: Apr 2008
Posts: 108

Original Poster
Rep: Reputation: 15
Smile TB0ne you are right but I had another question

After I posted my question I went back and found that yep, - u passwd "username" was the trick. Thanks. What I also found out that the problem I had was not so a simple locking themselves and me unlocking their account. Previous to the problem I edited the /etc/pam.d/system-auth file so user who failed to login directly to the system properly with the correct password 3 times would have their local account locked. The changes I made worked but when I performed the command -u passwd command it appeared to work but the users still got the "Authentication Failed" after typing in the correct password. I went back to the /etc/pam.d/system-auth file, with root, and removed the changes and users could login. I found another site that swears there comment would work but before I make the same mistake twice what do you think of the lines below?

auth required /lib/security/$ISA/ onerr=fail no_magic_root

account required /lib/security/$ISA/ per_user deny=5 no_magic_root reset


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Ruby on RHEL 4 64bit Neruocomp Linux - Software 2 09-26-2012 05:43 PM
adobe flash played for RHEL -4 Update 5 ( 64bit) abhi019 Member Intro 3 08-13-2007 08:37 PM
RHEL 4 hangs on AMD 64bit PC sushil_gambhir Red Hat 2 06-08-2006 11:18 PM
RHEL 4 64Bit an HP BL 25p, the clock don't work correctly ZaRa Red Hat 0 01-17-2006 05:38 AM
Can unlock screen with root password in my user account - want to change this sm1 Linux - Newbie 2 07-24-2005 05:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration