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 existing account and remove all advertisements. |
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | 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. |
| Sponsored Links | ||
|
|
|
||||
|
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 Linux Evangelist |
| The Following User Says Thank You to nixcraft For This Useful Post: | ||
jaysunn (11-28-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 | 06-14-2008 12:01 AM |
| how to change root password | sandromax | Solaris/OpenSolaris | 4 | 10-11-2007 03:43 AM |
| Change root password MySQL 5 | chiku | Databases servers | 1 | 01-16-2007 09:46 PM |
| HP UX user lock password, change password, password aging | rockdalinux | HP-UX | 0 | 12-20-2006 03:36 PM |
| How to change time for Domino 6.5 on RHEL AS 4 | vin6384 | Linux software | 2 | 03-08-2006 11:35 PM |