Re: How to know when was root passwd changed
From: Mike Craik (bovine@btinternet.com)Date: 03/14/02
- Previous message: Mike Donovan: "RE: Password Question"
- In reply to: NP, Ram (CORP, GEITC): "How to know when was root passwd changed"
- Next in thread: leon: "RE: How to know when was root passwd changed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 14 Mar 2002 20:10:55 +0000 From: Mike Craik <bovine@btinternet.com> To: security-basics@security-focus.com
"NP, Ram (CORP, GEITC)" wrote:
>
> Now could some one tell me if
> there is a way to find out when(time) was the Root passwd changed. I
> understand one way would be using Tripwire. since we didnt have tripwire
> earlier on the machine is there a way to recover the time.
Hi,
This information is stored in /etc/shadow.
The third field is the no of days since 1970 that the password was last
changed. e.g. -
bash-2.05# cat /etc/shadow | grep ^root
root:encrypted-honest:11760::::::
^^^^^
You can use the logins command to extract this information, e.g. -
bash-2.05# logins -x -l root
root 0 other 1 Super-User
/
/sbin/sh
PS 031402 -1 -1 -1
^^^^^^
So, I last changed my root password today.
Of course it's quite trivial to change this information, however if this
is a trusted system (if there's such a thing), it may be accurate
enough.
Cheers,
Mike.
- Previous message: Mike Donovan: "RE: Password Question"
- In reply to: NP, Ram (CORP, GEITC): "How to know when was root passwd changed"
- Next in thread: leon: "RE: How to know when was root passwd changed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|