Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-10-2004, 05:57 PM   #1
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Rep: Reputation: 30
how to tell what users are locked out


I need to know which accounts on my RH linux box are locked out.

I've used chage and finger but, those don't say 'Account Locked out'

I've looked at the /etc/passwd and /etc/shadow but, those don't really say anything.

Is there a sure way of telling if an account is locked out?

Old 06-10-2004, 08:54 PM   #2
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
The field to the left of the last colon (the second to last field) in /etc/shadow tells the number of days since 1/1/1970 that the users account has been disabled.

I'm not sure though if that is the sum of the number of days or if that gets reset after an account is re-enabled.

Last edited by meblost; 06-10-2004 at 08:56 PM.


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
POP Problem with mail users are diconnected and mailbox locked jouxsonj Linux - General 0 10-18-2005 03:13 AM
Users Locked Out, Gdm Gone Beserk,14 hours @ work. No Solution yet. fragmented_user Linux - Newbie 17 09-02-2005 07:07 AM
how to authenticate external users but bypass prompt on local LAN users? taiwf Linux - Security 5 07-13-2005 10:01 AM
Locked Archive or Installer to force end users to accept a license agreement diven Linux - General 1 05-03-2005 08:45 PM
How to get a list of users with their password status (expired, account locked...)? ricky_ds Linux - General 6 02-28-2005 10:53 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:50 PM.

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