Sep
16

Linux: How to Force Users to Change Password at First Login

Author Rai    Category Linux     Tags

So,how do you, as a Linux System Administrator, force system users to change their passwords at first or next login? Very simple:

Using chage command:

If the password is already set, execute this command to expire the user account:

chage -d 0 user1

On the user’s next login, password change will be enforced.

Very simple.

Related Posts

  • Most Popular Posts

2 Comments to “Linux: How to Force Users to Change Password at First Login”

  • toff Ubuntu Linux Mozilla Firefox 3.0.14 September 17, 2009 at 6:19 pm

    unfortunatly , it doesn’t work with ldap+gdm session
    I mean like MS domain session opening with passord changing forced

  • Bhupsa Windows XP Internet Explorer 6.0 October 14, 2009 at 3:43 pm

    # passwd -f

Post comment

CommentLuv Enabled