linux , immediately expired password

Posted on 2010-04-10
Medium Priority
Last Modified: 2013-12-06
I need to confirm that all new user created should Immediately expire new and manually reset passwords

how to check this in linux machine
Question by:apunkabollywood
  • 2

Expert Comment

ID: 30334629
for example by passwd -e raj

Expert Comment

ID: 30404388
according to http://www.linuxheadquarters.com/howto/basic/adduser.shtml
in Red Hat there is possible adduser with -e (expiration), but it's not in Debian so I can't try it, but if it means expiration of the password it should do the job. Something like:
adduser user -e `date '+%m/%d/%y'`


Accepted Solution

JordanH155 earned 2000 total points
ID: 30458996
You can do "chage -d 0 (user)" to force the user to change the password at next login.  This is how it is done on RHEL.

To check you would have to look at the user's line in /etc/shadow.  The fields are seperated by ":".  The first field is the user name, the second is a password hash, and the third is the expire days.  If the number is 0, then they will have to change on the next login.


Featured Post

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…
Suggested Courses

608 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