Linux: How to Force Users to Change Password at First Login
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
3 Comments to “Linux: How to Force Users to Change Password at First Login”
Post comment
Search PinoyTux
Subscribe to Email Feeds
Blog Lounge
Popular Posts
Recent Posts
Drop your Card Here
Recent Comments
- Eduardo Portillo on 3ix Scam: Looking for Feedbacks
- wayne donahue on Cebu Pacific Airlines is Evil!
- smeaferrepove on Howto: Install yum On RHEL 4
- Anidich1 on Tip: Add User and Generate Password Script
- Tom S on Cebu Pacific Sucks









unfortunatly , it doesn’t work with ldap+gdm session
I mean like MS domain session opening with passord changing forced
# passwd -f
> If the password is already set,
yeah, but what about if the password is *not* already set, as when creating a new account? you covered “next” login, but not “first” login.
thanks anyway. 8-P