LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to tell what users are locked out (https://www.linuxquestions.org/questions/linux-security-4/how-to-tell-what-users-are-locked-out-192067/)

psychobyte 06-10-2004 04:57 PM

how to tell what users are locked out
 
Hi,

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?

Thanks,

meblost 06-10-2004 07:54 PM

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.


All times are GMT -5. The time now is 08:46 PM.