LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2009, 02:00 AM   #1
imprise
LQ Newbie
 
Registered: May 2009
Distribution: SUSE
Posts: 20

Rep: Reputation: 0
/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
 
Old 05-18-2009, 02:20 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,038

Rep: Reputation: 97
man shadow:
Quote:
days since Jan 1, 1970 that password was last changed
 
Old 05-18-2009, 02:21 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

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

And yes, I was beaten to the punch.

Last edited by hw-tph; 05-18-2009 at 02:22 AM. Reason: Borked post which didn
 
Old 05-18-2009, 02:32 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,038

Rep: Reputation: 97
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
 
Old 05-18-2009, 03:28 PM   #5
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,038

Rep: Reputation: 97
To find out what the current date would be:

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set getpwnam to read a file instead /etc/shadow file ZAMO Linux - General 1 02-02-2009 09:25 AM
/etc/shadow file. BryMAy Linux - Security 10 08-22-2008 01:43 PM
shadow file os2 Linux - Security 3 10-18-2005 04:20 PM
shadow file stevee Linux - Security 1 10-07-2003 11:11 AM
shadow file? tjm Linux - Security 4 09-15-2003 05:23 PM


All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration