Saturday, January 30, 2021

Force users to change their linux passwords

Building on the previous post regarding tldr I decided to use the chage command to force a user to change his password. In this example, I'm forcing the user kingtux to change his password at his next login attempt:



Now I'm going to login as kingtux:


 




Now I'm going to force the user kingtux to change his password using the passwd command:


 



Now I'll log in kingtux again:






The nice thing about Linux is that there is usually more than one way to get a job done. Use either: chage or passwd to force users to change their passwords.

Welcome Back to Linux Quick Notes!

Hello and welcome to the relaunched Linux Quick Notes! I’m Steven, and I’m thrilled to revive this blog, originally created four years ago d...