LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 01:20 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
man shadow:
Quote:
days since Jan 1, 1970 that password was last changed
 
Old 05-18-2009, 01: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 01:22 AM. Reason: Borked post which didn
 
Old 05-18-2009, 01:32 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
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, 02:28 PM   #5
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

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

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


Reply



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 08:25 AM
/etc/shadow file. BryMAy Linux - Security 10 08-22-2008 12:43 PM
shadow file os2 Linux - Security 3 10-18-2005 03:20 PM
shadow file stevee Linux - Security 1 10-07-2003 10:11 AM
shadow file? tjm Linux - Security 4 09-15-2003 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:45 AM.

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
Open Source Consulting | Domain Registration