• Skip to primary navigation
  • Skip to main content
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to increase Password Expire date without resetting the password

November 22, 2011 by Sharad Chhetri Leave a Comment

How to increase Password Expire date without resetting the password

It is commonly used that when we have to increase the password expire date of any user we simply reset the password of that user .

But we can increase the Password Expire date of user without resetting the password.

Here is the below scenario —

[root@server ~]# chage -l linuxtribe
Last password change : Nov 22, 2010
Password expires : Feb 20, 2011
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 90
Number of days of warning before password expires : 7
[root@server ~]#

In above para Last password change,Password expires & Maximum number of days between password change is important fields.

Here the “Maximum number of days between password change” has value 90 days.
So on the basis of this we will increase the Password Expire date.

for above scenario use the command :

chage -d 2011-02-20 linuxtribe

Here in above command we have changed the “last password change” value .
So by doing this it will automatically add 90 days and give new value in “Password Expires”

Check the below result

[root@server ~]# chage -l linuxtribe
Last password change : Feb 20, 2011
Password expires : May 20, 2011
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 90
Number of days of warning before password expires : 7
[root@server ~]#

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Non interactive ,without typing password do ssh to Server : By sshpass
  2. Nginx : could not build the server_names_hash, you should increase server_names_hash_bucket_size
  3. Linux: Set user password by using encrypted password in command
  4. Increase upload file size limit in php
  5. How to delete password of user in Linux
  6. Read the file inside compressed .gz files without extract
  7. How to change hostname in Ubuntu 12.04 and 12.10 without system restart
  8. Run the script using nohup without hitting enter key two times
  9. Edit the crontab without using crontab -e
  10. Learn Linux Date Command With Examples

Filed Under: Linux, Linux Admin, Tips And Tricks Tagged With: user management

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy