Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to change the password expire date on linux

Posted on 2010-11-29
4
Medium Priority
?
715 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

916 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