Trevor
Starfighter Starfighter
Starfighter
  • 145 Views

New User Account - Password Expiration

How can/do I go about creating a new user account, so that the password will expire in 30 days?

Trevor "Red Hat Evangelist" Chandler
Labels (3)
3 Replies
Gopinath_Pigili
Flight Engineer
Flight Engineer
  • 129 Views

Hello @Trevor 

Create useraccout with useradd  command then set the password properties with passwd command. 

passwd -n 30 -w 3 –x 90 username
sets the password for user (username) to a minimal usage period of 30 days and an expiry after 90 days, where a warning is generated 3 days before expiry.

Thanks

Trevor
Starfighter Starfighter
Starfighter
  • 123 Views

Hello Gopinath,

Thank you for your response.

Question:  Why expiry after 90 days?  Why not 30 days?  
I get the minimual usage period of 30 days.  Why not a
same number for expiry days?

Thanks

Trevor "Red Hat Evangelist" Chandler
Gopinath_Pigili
Flight Engineer
Flight Engineer
  • 111 Views

A minimum password usage period (like 30 days) and a password expiry period (like 90 days) are often used together to enhance security, but they serve different purposes: the minimum usage period prevents users from immediately changing back to a previously used password, while the expiry period ensures passwords are refreshed periodically..!

Thanks

Join the discussion
You must log in to join this conversation.