The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 06-22-2009
thenomad thenomad is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 16
If you have tried to convert your system to trusted system, or vice-versa, all your users' status have been changed to LOCKED. You need to unlock the users one by one.


Code:
cat /etc/passwd | while read uline; do
UNAME=$(echo $uline | cut -d: -f1)
/usr/lbin/modprpw -l -m alock=NO $UNAME  #unlocks the account
/usr/lbin/modprpw -k $UNAME #resets incorrect login count
done

hope this helps