mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
sysusers: avoid creating spurious "nobody" group
On distros using Debian's base-passwd, the name of the group with gid 65534 is nogroup. Currently, systemd-sysusers creates a spurious "nobody" group systemd-sysusers[243]: Creating group nobody with gid 996 That's both confusing and redundant, as the nobody user still has primary group 65534 aka nogroup, and the nobody group simply goes completely unused. So explicitly specify the primary group of the nobody user, and add a line ensuring that that group exists. This is not a problem for Debian (or Ubuntu) itself, as they add their own version of basic.conf in their systemd build logic. But it appears on for example Yocto/OpenEmbedded.
This commit is contained in:
parent
3d170ca580
commit
4ced52595f
|
@ -8,8 +8,9 @@
|
||||||
# The superuser
|
# The superuser
|
||||||
u root 0 "Super User" /root
|
u root 0 "Super User" /root
|
||||||
|
|
||||||
# The nobody user for NFS file systems
|
# The nobody user/group for NFS file systems
|
||||||
u {{NOBODY_USER_NAME}} 65534 "Nobody" -
|
g {{NOBODY_GROUP_NAME}} 65534 - -
|
||||||
|
u {{NOBODY_USER_NAME }} 65534:65534 "Nobody" -
|
||||||
|
|
||||||
# Administrator group: can *see* more than normal users
|
# Administrator group: can *see* more than normal users
|
||||||
g adm {{ADM_GID }} - -
|
g adm {{ADM_GID }} - -
|
||||||
|
|
Loading…
Reference in a new issue