Solved

how to change the password expire date on linux

Posted on 2010-11-29
4
658 Views
Last Modified: 2013-12-16
How do I change the password expire date? I used -E option it changed the account expire date.

chage -l  userid
Minimum:        7
Maximum:        28
Warning:        7
Inactive:       62
Last Change:            Aug 24, 2010
Password Expires:       Sep 21, 2010
Password Inactive:      Nov 22, 2010
Account Expires:        Nov 11, 2020
0
Comment
Question by:mokkan
  • 3
4 Comments
 

Author Comment

by:mokkan
ID: 34233714
I reset the password and it changed. Thank you.
0
 
LVL 9

Accepted Solution

by:
jeremycrussell earned 500 total points
ID: 34233716
passwd -x and passwd -n  will change the maximum and minumum (respectively) number of days a password is valid for a user.

I.E.  passwd -x 120 userid  will configure userid's password to expire after 120 days.
0
 

Author Comment

by:mokkan
ID: 34233799
Thank you very much.
0
 

Author Closing Comment

by:mokkan
ID: 34233805
Thank you for the help.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now