Comment 10 for bug 27520

Revision history for this message
Stephane Chazelas (stephane-chazelas) wrote : Re: [Bug 27520] Re: cron no longer respects nsswitch.conf

> This appears to be a variant of Debian bug #512757 against cron. Can
> somebody confirm this for me?
[...]

Pretty much, though for me reordering the init scripts wasn't enough as
there was some delay between the time nslcd (the LDAP cache daemon) was
started and it being operational.

In any case we need a mechanism for cron to refresh its idea of which
users are valid at a given time. It already checks upon executing a cron
job whether the user is still there, it would also need to check regularly
(or upon notification of the NSS system) when new users come into life.

Or because it checks before executing the jobs anyway, cron could skip the
check for orphan crontabs at startup altogether (or maybe just issue a
warning that some crontabs could be cleaned up).