banner



How To Set User Password Never Expire In Linux

System administration involves numerous tasks including managing users/groups and nether user direction, some of the pocket-sized tasks involved are adding, modifying, suspending, or deactivating user accounts, and many more.

This article volition explain one of the critical user business relationship direction functions, how to set or alter user password expiration and crumbling in Linux using the chage command.

Read Also: How to Manage Users and Groups in Linux

The chage command is used to modify user countersign expiry data. Information technology enables you to view user account crumbling information, change the number of days between password changes and the engagement of the last password change.

Once you accept ready countersign decease and crumbling information, this data is used by the organisation to determine when a user must change his/her password. Normally, companies or organizations accept certain security polices that need users to change passwords regularly: this can be a simple way to enforce such policies as nosotros explained below.

To view a user business relationship crumbling information, utilize the -50 flag equally shwon.

# chage -l ravi        
View User Password Aging Information
View User Countersign Aging Information

To gear up the engagement or number of days (since January 1, 1970) when the countersign was last changed, use the -d flag every bit follows.

# chage -d 2022-02-11 ravi        

Next, you can likewise set the date or number of days (since January 1, 1970) on which the user's account will no longer be accessible by using the -E switch equally shown in the following command.

In this case, one time a user's account is locked, he/she is required to contact the system administrator earlier being able to use the system over again.

# chage -East 2022-02-16 ravi        

And so, the -West choice allows you to set the number of days of alarm before a password change is required. Considering the command below, the user ravi volition be warned 10 days prior to his password expiring.

# chage -Westward 10 ravi        

In addition, you tin can set the number of days of inactivity afterward a countersign has expired before the account is locked. This case means that after user ravi's password expires, his account will exist inactive for 2 days before it is locked.

When the account becomes inactive, he must contact the system ambassador before existence able to apply the system again.

# chage -I 2 ravi        

For more information, refer to the chage man page.

# man chage        

Note that you can besides alter a user's password expiration and aging information using the usermod command, which is actually intended for modifying a user account.

Besides check out:

  1. Managing Users & Groups, File Permissions & Attributes on User Accounts
  2. xi Ways to Find User Account Info and Login Details in Linux

That'southward it for now. Hoping you discover this commodity informative and useful, if yous have any questions to ask, utilize the feedback form beneath.

If You Capeesh What We Do Hither On TecMint, You Should Consider:

TecMint is the fastest growing and virtually trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

Nosotros are thankful for your never ending support.

How To Set User Password Never Expire In Linux,

Source: https://www.tecmint.com/manage-user-password-expiration-and-aging-in-linux/

Posted by: fitefesionfluen.blogspot.com

0 Response to "How To Set User Password Never Expire In Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel