# How to read the password change time stamp from /etc/shadow?

**URL:** <https://forum.ansible.com/t/how-to-read-the-password-change-time-stamp-from-etc-shadow/23645>\
**Category:** Ansible Project\
**Created:** [February 6, 2017, 2:00pm UTC](https://forum.ansible.com/t/how-to-read-the-password-change-time-stamp-from-etc-shadow/23645 "2017-02-06T14:00:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cev\_Ing](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Post date:** [February 6, 2017, 2:00pm UTC](https://forum.ansible.com/t/how-to-read-the-password-change-time-stamp-from-etc-shadow/23645/1 "2017-02-06T14:00:58Z")

</div>

How to read the time the password has last changed in order to compare it with some date?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 6, 2017, 2:15pm UTC](https://forum.ansible.com/t/how-to-read-the-password-change-time-stamp-from-etc-shadow/23645/2 "2017-02-06T14:15:59Z")

</div>

getent module, but you probably need to be root to have read access.  
[http://docs.ansible.com/ansible/getent\_module.html](http://docs.ansible.com/ansible/getent_module.html)
