[1448494 views]

[]

[ads]

Odi's astoundingly incomplete notes

New entries | Code

Gentoo updates su binary

If your Gentoo spits out cron errors like this:
run-parts: /etc/cron.daily/man-db exited with return code 1
after updating to sys-apps/util-linux-2.37.3 then you should run pwck to check the consistency of /etc/passwd, /etc/shadow etc.
# pwck 
user 'adm': directory '/var/adm' does not exist
user 'lp': directory '/var/spool/lpd' does not exist
user 'news': directory '/usr/lib/news' does not exist
user 'uucp': directory '/var/spool/uucppublic' does not exist
no matching password file entry in /etc/shadow
add user 'man' in /etc/shadow? y
no matching password file entry in /etc/shadow
add user 'smmsp' in /etc/shadow? n
no matching password file entry in /etc/shadow
add user 'portage' in /etc/shadow? y
no matching password file entry in /etc/passwd
delete line 'games:*:9797:0:::::'? y
no matching password file entry in /etc/passwd
delete line 'guest:*:9797:0:::::'? y
pwck: the files have been updated
On all my machines the man and portage users were not in shadow. And you can userdel smmsp if you are not using qmail too.

The problem arises since the su binary from sys-apps/shadow has been replaced with the util-linux version (see su USE flag).


posted on 2022-01-28 10:22 CET in Code | 1 comments | permalink
Thanks for spelling it out. Current latest stable sys-apps/man-db-2.9.4-r1 doesn't seem to be requiring new-enough sys-apps/util-linux-2.37.4, and man-db cron job starts failing every day.