3 ms·
Every Linux machine knows when you last changed your password, too. $ passwd --status
by jlgaddis 10y ago
Every Linux machine knows when you last changed your password, too.
$ passwd --status
- emmelaich 10y agoOnly root can do that.
- Dylan16807 10y agoI'm not sure why that would matter, but that's not true. No sudo needed to look up that I set my password on this VM on 2013-10-08.
- emmelaich 10y agoThat was a direct copy'n'paste from a session on centos7. Password age is kept in /etc/shadow, not /etc/passwd. So the passwd command is (needs to be) setuid. Redhat generally limits what setuid programs can do. Probably sensible.