LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /etc/shadow file (https://www.linuxquestions.org/questions/linux-newbie-8/etc-shadow-file-726686/)

imprise 05-18-2009 01:00 AM

/etc/shadow file
 
hi all;

Look at the following example:

admin:$2a$05$7FnQWSHB9fTeyBX4cQrrtekkNdzv3SHCkiOnbLm8twHRTHjlNddz6:14371:0:99999:7:::

As you know, this is "Last_Modified" option. Right? What does the number mean?

Thanks

Disillusionist 05-18-2009 01:20 AM

man shadow:
Quote:

days since Jan 1, 1970 that password was last changed

hw-tph 05-18-2009 01:21 AM

It's the number of days since January 1st 1970 that the password was changed.

And yes, I was beaten to the punch.

Disillusionist 05-18-2009 01:32 AM

It's not often that I win a typing race ;)

BTW: imprise

Today (18/May/2009) would be 14382 therefore 14371 would be 11 days ago: 7/May/2009

Disillusionist 05-18-2009 02:28 PM

To find out what the current date would be:

Code:

echo "$(date +%d/%b/%Y) = $(expr $(date +%s) / 60 / 60 / 24)"


All times are GMT -5. The time now is 05:54 AM.