Saturday 2 July 2016

Unlocking user accounts on trusted systems

Steps for unlocking user accounts:

1. Check if the account is locked in the first place using the following command:
      
        /usr/lbin/getprpw    username
     
      Check the lockout field. If any of the bits is a 1 instead of 0 then that implies that          
       Account is locked..

  2. Type the following command to unlock the account:
    
      /usr/lbin/modprpw   -k   username

  3. Type the following command to extend the user’s password by 90 days if it’s  expired

     /usr/lbin/modprpw     -v   username


To change user’s password:
Type the following command:


passwd   username

No comments:

Post a Comment

Using capture groups in grep in Linux

Introduction Let me start by saying that this article isn't about capture groups in grep per se. What we are going to do here with gr...