File timestamps tell you that /etc/passwd changed. They don’t tell you who did it. The Linux audit system can, and one rule is enough to start.
On Ubuntu and Debian it comes in the auditd package. Then:
sudo auditctl -a always,exit -F arch=b64 -F path=/etc/passwd -F perm=wa -k passwd-change
sudo ausearch -k passwd-change -i
The rule records every write (w) or attribute change (a) to that file and tags it with the key passwd-change. ausearch -k finds the events with that key, and -i turns numbers into names. The part I like most is the auid field: the login user id, which stays the same after sudo. So the event shows which person logged in, not just root.
You’ll find plenty of guides with auditctl -w /etc/passwd -p wa. That still works, but the current man page calls the -w form deprecated because of poor performance and shows the syscall form above as its replacement. For a whole folder, use -F dir=/etc/ssh/ instead of path.
Rules made with auditctl are gone after a reboot. To keep one, put the same line without auditctl in front in a file such as /etc/audit/rules.d/passwd.rules and run sudo augenrules --load.
The caveat is in a section of the man page called “Disabled by default”: on many systems auditd installs an -a never,task rule that makes every process skip audit rules. If your rule never matches, check sudo auditctl -l for that line first. And don’t go wild with rules: every syscall rule is checked for every program, so a handful of watches on files that matter beats auditing all of /etc.
Further reading: auditctl manual page, ausearch manual page, augenrules manual page