Solved

how to change the password expire date on linux

Posted on 2010-11-29
4
675 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
The better OS Architecture 13 108
NTPD Client Port Usage 12 94
exchange, squid, proxy, linux 6 87
How to fix Dual Server Conflict GitLab vs Apache2 3 58
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 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