Tuesday, May 21, 2013

How to Configure User to Change Password at First Login


Configure Initial Password  
# useradd –u 2001 -c 'John Doe' –d /home/jdoe jdoe  
# passwd jdoe  
Changing password for user jdoe 
New password:  
Retype new password:  
passwd: all authentication tokens updated successfully.  
  
  • # usermod -L jdoe   
  • # chage -d 0 jdoe   
  • # usermod -U jdoe   
  • When the user jdoe logs onto the system the first time, the user is prompted to change their password, the 'chage -d 0' will require user to change password at first login.

No comments:

Post a Comment