Como identificar usuários com senhas em status lock
LINUX
Verificando status do usuário
# passwd -S kairo kairo LK 2008-10-31 0 99999 7 -1 (Password locked.)
Retirando lock do usuário
# passwd -u kairo Unlocking password for user kairo. passwd: Success.
o status fica normal
# passwd -S kairo kairo PS 2008-10-31 0 99999 7 -1 (Password set, MD5
crypt.)
Fazendo lock de senha do usuário
# passwd -l kairo Locking password for user kairo. passwd: Success
AIX
# lsuser kairo kairo id=15000 pgrp=staff groups=staff,so
home=/home/kairo shell=/usr/bin/ksh gecos=Kairo Araujo login=true
su=true rlogin=true daemon=true admin=false sugroups=ALL admgroups=
tpath=nosak ttys=ALL expires=0 auth1=SYSTEM auth2=NONE umask=22
registry=files SYSTEM=compat logintimes= loginretries=0 pwdwarntime=0
account_locked=false minage=0 maxage=0 maxexpired=-1 minalpha=0
minother=0 mindiff=0 maxrepeats=8 minlen=0 histexpire=0 histsize=0
pwdchecks= dictionlist= fsize=-1 cpu=-1 data=262144 stack=65536
core=2097151 rss=65536 nofiles=2000 fsize_hard=-1
time_last_login=1229521872 time_last_unsuccessful_login=1224871660
tty_last_login=/dev/pts/0 tty_last_unsuccessful_login=ssh
host_last_login=myserver host_last_unsuccessful_login=127.0.0.1
unsuccessful_login_count=0 roles=
Verifique o item "account_locked".
Para gerenciar, recomendo utilizar o smitty
smitty user
Comments !