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
|