<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Indeed my systemd is version 245.4-4ubuntu3.15...</p>
<p>How could I know that the minimal required version was 249 (so I
don't bother you again!)?<br>
</p>
<div class="moz-cite-prefix">Le 05/04/2022 à 11:21, Lennart
Poettering a écrit :<br>
</div>
<blockquote type="cite" cite="mid:YkwKLEEPHOd%2Fryk2@gardel-login">
<pre class="moz-quote-pre" wrap="">On Di, 05.04.22 10:30, Gildas Bayard (<a class="moz-txt-link-abbreviated" href="mailto:gildas.bayard@hds.utc.fr">gildas.bayard@hds.utc.fr</a>) wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hello,
I'd like to dynamically provide group data when group data is queried by the
system (as in "getent group").
Since nsswitch can use systemd, I've looked at nss-systemd.
As a first step I tried to define a Static Drop-In JSON User Record (because
user definition is documented with more details than group definition).
So I added a toto.user in /etc/userdb/ with this
{
"userName" : "toto",
"uid" : 7777
}
and a 7777.user file pointing to toto.user
But when I run "getent passwd", there's no toto user.
I tried to see a bit what's going on with strace and I see that getent opens
libnss_systemd.so.2 and looks for files in /run/systemd/userdb.
But it's not even trying to read in the directories |etc/userdb/|,
|/run/userdb/|, |/run/host/userdb/| and |/usr/lib/userdb/|
||
Any suggestion?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Maybe your systemd version is simply too old? You need v249 at the
least for the above.
Lennart
--
Lennart Poettering, Berlin
</pre>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<font face="DejaVu Sans"><b><font color="#1f497d">Gildas Bayard</font></b><br>
Ingénieur de Recherche<br>
Responsable Sécurité des Systèmes d'Informations<br>
Coordonnateur pour la Protection du Potentiel Scientifique et
Technique<br>
<i>Télétravail le mercredi</i><br>
Laboratoire HEUDIASYC - UMR CNRS 7253 - GI028<br>
UTC Centre de Recherches de Royallieu<br>
BP 20529 - 60205 Compiègne Cedex<br>
Tél. 03 44 23 46 71</font> </div>
</body>
</html>