Linux / UNIX Tech Support Forum
This is a discussion on Time Stamp for root password change within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi, I need to know how to determine the last time root password has been changed in CentOS and RedHat ...
Register free or login to your account to remove all advertisements.
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi,
I need to know how to determine the last time root password has been changed in CentOS and RedHat linux I know the third field in etc/shadow that shows is the number of days (since January 1, 1970 ), since the password was changed. If I understand this correctly if the password is changed today, the number should reflect the number of days that has elapsed since the January 1,1970. Is that correct? Would there be another way to determine when the root password was changed. Any feedback is greatly appreciated. |
|
||||
|
Use chage command. It shows exact date of last password change:
Code:
chage -l userName chage -l root Code:
Last password change : Nov 05, 2009 Password expires : never Password inactive : never Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 99999 Number of days of warning before password expires : 7
__________________
Vivek Gite |
| The Following User Says Thank You to nixcraft For This Useful Post: | ||
jaysunn (28th November 2009) | ||
![]() |
|
|
| Tags |
| centos last password change date, linux last password change data, redhat last password change date, rhel last password change date, root last password change date |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change root password using perl script? | Raj1 | Solaris/OpenSolaris | 8 | 13th June 2008 11:01 PM |
| how to change root password | sandromax | Solaris/OpenSolaris | 4 | 11th October 2007 02:43 AM |
| Change root password MySQL 5 | chiku | Databases servers | 1 | 16th January 2007 08:46 PM |
| HP UX user lock password, change password, password aging | rockdalinux | HP-UX | 0 | 20th December 2006 02:36 PM |
| How to change time for Domino 6.5 on RHEL AS 4 | vin6384 | Linux software | 2 | 8th March 2006 10:35 PM |