Expiring a user's password in Linux can be accomplished using the passwd
command. Here's how to do it:
Open a terminal and log in with root or sudo access.
You can expire the user's password using the -e
option:
sudo passwd -e username
Replace username
with the actual username.
The user will be required to change their password the next time they log in.