Solved

how to change the password expire date on linux

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

735 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