[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Locked accounts



On Wed, Dec 13, 2000 at 09:06:22AM -0500, Robert Brown wrote:
> I routinely use passwd -l username to lock customers with overdue balances.  Is
> there a way to list all accounts that are locked?

>From passwd(1):

> -l   This option is used to lock the specified account and  it  is  available  to
>      root only. The locking is performed by rendering the encrypted password into
>      an invalid string (by prefixing the encrypted string with an !).

so grep your /etc/shadow for passwords starting with `!'.


Hope this helps,
adc



Reply to: