[Buildroot] [PATCH v2 02/14] package/systemd: remove unused user accounts

Norbert Lange nolange79 at gmail.com
Mon Jun 15 10:38:37 UTC 2020


Am Mo., 15. Juni 2020 um 11:42 Uhr schrieb Yann E. MORIN
<yann.morin.1998 at free.fr>:
>
> Norbert, All,
>
> On 2020-06-15 09:20 +0200, Norbert Lange spake thusly:
> > Since V235 the "gateway" and "upload" services use DynamicUsers,
> > requiring no entries in /etc/passwd.
> > This functionality requires nss-systemd, which is always
> > enabled in buildroot.
> >
> > The "bus-proxy" user was removed in V230.
> >
> > Signed-off-by: Norbert Lange <nolange79 at gmail.com>
> > Reviewed-by: Jérémy Rosen <jeremy.rosen at smile.fr>
>
> Applied to master, thanks.
>
> Regards,
> Yann E. MORIN.
>

Hi,

unfortunately this depends on nss-systemd being available and
configured (Patch #1).
I dont know if removing those users made the current status worse for
these services,
but any service with DynamicUser=yes might not work correctly without
a configured nss-systemd.

Tests this:

# save this as /run/systemd/system/test.service
# systemctl daemon-reload
# systemct start test
----------------------------------------------------------
[Unit]
Description=Test DynamicUser

[Service]
ExecStart=id -n -u
DynamicUser=yes
----------------------------------------------------------

This should give you as name "test", not a number and not an error

Norbert


More information about the buildroot mailing list