I'm reading Linux All-in-One for Dummies and it recommends verifying that the permissions on /etc/shadow are set to 400 (p. 456). Elsewhere on this site, I see that some distros set this to 600 instead, allowing write in addition to read. I'm curious which is the better practice and why.
Since the owner is root:root, root can just chmod to 600 whenever it wants to edit it anyway, so is the distinction meaningful? Is there a specific threat model addressed by choosing 400 instead of 600 for a root-owned file, or is it just about following the best practice of assigning minimal permissions? And doesn't the system (as root) have to edit the file when a user legitimately changes their password?