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
Solved

how to change the password expire date on linux

Posted on 2010-11-29
4
670 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
Postfix issues with spam/auth attempts under NAT 9 112
Access_log 17 147
awk sed 8 64
000webhost.com default error log 1 39
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
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.

840 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