From a8a832c6ad57aa30797b2529224be972b23d9049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Wed, 20 Dec 2023 11:25:56 +0100 Subject: [PATCH 1/2] meta-lxatac-software: passwd: reduce to only uid/gid assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The remaining fields are filled in when the user is actually created, having it in these files may be missleading when changes to the file do not propagate into the generated image. Signed-off-by: Leonard Göhrs --- meta-lxatac-software/files/passwd | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/meta-lxatac-software/files/passwd b/meta-lxatac-software/files/passwd index 7163adae..ed4942f2 100644 --- a/meta-lxatac-software/files/passwd +++ b/meta-lxatac-software/files/passwd @@ -1,15 +1,15 @@ -root:x:0:0:root:/home/root:/bin/sh -pulse:x:983:983::/var/run/pulse:/bin/false -avahi-autoipd:x:984:984::/run/avahi-daemon:/bin/false -systemd-timesync:x:989:986::/:/sbin/nologin -systemd-resolve:x:990:987::/:/sbin/nologin -systemd-coredump:x:991:988::/:/sbin/nologin -avahi:x:992:990::/run/avahi-daemon:/bin/false -rpcuser:x:993:991::/var/lib/nfs:/bin/false -polkitd:x:994:992::/etc/polkit-1:/bin/nologin -systemd-bus-proxy:x:995:995::/:/sbin/nologin -lldpd:x:996:996::/home/lldpd:/bin/false -rpc:x:997:997::/:/bin/false -messagebus:x:998:998::/var/lib/dbus:/bin/false -sshd:x:999:999::/var/run/sshd:/bin/false -nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin +root:x:0:0 +pulse:x:983:983 +avahi-autoipd:x:984:984 +systemd-timesync:x:989:986 +systemd-resolve:x:990:987 +systemd-coredump:x:991:988 +avahi:x:992:990 +rpcuser:x:993:991 +polkitd:x:994:992 +systemd-bus-proxy:x:995:995 +lldpd:x:996:996 +rpc:x:997:997 +messagebus:x:998:998 +sshd:x:999:999 +nobody:x:65534:65534 From 0c4a264183d85eb828f2046986625f8aae504bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Wed, 20 Dec 2023 14:01:56 +0100 Subject: [PATCH 2/2] meta-lxatac-software: passwd: reserve uid/gid for systemd-journal-upload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tacos base install does not install / configure systemd-journal-upload, but the Pengutronix-Internal derived images do. Register the uid/gid here, as systemd-journal-upload is generally useful when managing a fleet of TACs. Signed-off-by: Leonard Göhrs --- meta-lxatac-software/files/group | 1 + meta-lxatac-software/files/passwd | 1 + 2 files changed, 2 insertions(+) diff --git a/meta-lxatac-software/files/group b/meta-lxatac-software/files/group index 529ed48b..1de1d31d 100644 --- a/meta-lxatac-software/files/group +++ b/meta-lxatac-software/files/group @@ -1,4 +1,5 @@ root:x:0: +systemd-journal-upload:x:982: pulse:x:983: avahi-autoipd:x:984: wheel:x:985: diff --git a/meta-lxatac-software/files/passwd b/meta-lxatac-software/files/passwd index ed4942f2..65263460 100644 --- a/meta-lxatac-software/files/passwd +++ b/meta-lxatac-software/files/passwd @@ -1,6 +1,7 @@ root:x:0:0 pulse:x:983:983 avahi-autoipd:x:984:984 +systemd-journal-upload:x:988:982 systemd-timesync:x:989:986 systemd-resolve:x:990:987 systemd-coredump:x:991:988