Pages

Monday, July 9, 2012

Make a User to Change his password for the first time he logs in

Share it Please

In order to make sure a user changes his password when the first time he logs in , follow the steps

useradd tom ( add a user )
passwd tom ( provide a password for user )
usermod –L tom ( lock the tom account )
chage –d 0 tom ( force expiration of the tom account )
usermod –U tom (unlock the account )

Happy Learning