Door Games Unlimited

Welcome, Guest.


Subject: Listing locked user accou Date: Wed Apr 25 2012 18:57:00
From: Chris Trainor To: Chris Perrault

  Re: Listing locked user accounts on Linux
  By: Chris Perrault to All on Sat Apr 21 2012 23:33:58

 > I curious how others go about getting a listing of locked user accounts on
 > Linux?

Depends on the config, but most modern Linux boxes keep the passwords 
stored in a text file.  /etc/shadow.  The password itself is encrypted, 
but if the password field starts with a ! then the account is locked.

The password field in the shadow file is the 2nd field.  (first being 
the username).

--Chris

---------------------------------
Chris Trainor - FleetHQ BBS
telnet://bbs.fleethq.org

---
 ■ Synchronet ■ FleetHQ BBS - Greenville, RI

Previous Message       Next Message
In Reply To: Listing locked user accou (Chris Perrault)
Replies: Listing locked user accou (John Guillory)