Hi Petter,

On  Di 01 Sep 2026 15:27:38 CEST, Petter Reinholdtsen wrote:

[Mike Gabriel]
On recent Debian Edu systems, there are many message in systemd's
journal / syslog referring to /etc/netgroup not being found on the
system:

"/etc/netgroup: No such file or directory"

Any idea where these come from.  I know netgroups from LDAP
traditionally have been used in Debian Edu for giving names to groups of
hosts for various purposes, and thus suspect the host local equivalent
might have its uses too, but it seem surprising that the lack of a local
/etc/netgroup should cause such noise, and I suspect the source should
be tracked down and silenced.

It happens in nss/nss_files/files-init.c in glibc:
https://sources.debian.org/src/glibc/2.43-4/nss/nss_files/files-init.c?hl=49#L49

If nscd is used, then all files listed there

  register_file (cb, pwddb, "/etc/passwd", 0);
  register_file (cb, grpdb, "/etc/group", 0);
  register_file (cb, hstdb, "/etc/hosts", 0);
  register_file (cb, hstdb, "/etc/resolv.conf", 1);
  register_file (cb, servdb, "/etc/services", 0);
  register_file (cb, netgrdb, "/etc/netgroup", 0);

get initialized and configured for inotify based file watching.

This is always done for all files, even if unused in /etc/nsswitch.conf.

The easiest fix for this from Debian Edu perspective is to have the file available, it seems.

However, I also filed a long-term request for a fix against the nscd package:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146436

Mike


--

mike gabriel aka sunweaver (Debian Developer)
mobile: +49 (1520) 1976 148
landline: +49 (4351) 486 14 27

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: [email protected], http://sunweavers.net

Attachment: pgpHy6zMcoDxe.pgp
Description: Digitale PGP-Signatur

Reply via email to