[Pkg-samba-maint] Bug#1068649: winbind: Should be wanted by and ordered before nss-user-lookup.target

Magnus Holmgren magnus.holmgren at milientsoftware.com
Mon Apr 8 15:27:17 BST 2024


Package: winbind
Version: 2:4.17.12+dfsg-0+deb12u1

I'm not entirely sure, but I think winbind.service should include

[Unit]
Wants=nss-user-lookup.target
Before=nss-user-lookup.target

systemd.special(7) says:

"All services which provide parts of the user/group database should be ordered 
before this target, and pull it in."

and winbind does provide parts of the user/group database (as long as it's 
mentioned in nsswitch.conf, but typically that's the point, isn't it?).

We've had trouble with cron not running some jobs for a good while, and I just 
now figured out that it's because we have some jobs configured to run as Samba 
users, and cron started before winbind on boot and complained about invalid 
users.

-- 
Magnus Holmgren
./¯\_/¯\. Milient Software
(also holmgren at debian.org)



More information about the Pkg-samba-maint mailing list