How To Force User Change Password Upon First Logon?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/force-user-change-password-upon-first-logon/
PINTEREST
PINTEREST
INSTAGRAM

I have a lot of users in my linux servers. Security is important for me. I know that one of the important security measure is passwords. The length, complexity, change period etc. How can I force user to change password in first login?

We will use chage command to force user change password in the first login.

Check Current Status

We will check current user password status with chage command like below.

Force User Password Change in The First Login

Force Please 🙂

  • chage is the command used to change password policy
  • -d 0 specifies password must change in 0 days which is first login
  • test2 is our user the password policy will be applied

Check The Status Again

We will check if force password change implemented

As we see that lines provides password must be changed message.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/force-user-change-password-upon-first-logon/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  How to Install Mariadb / Mysql Server in Linux Fedora?

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)