From 127c3c3d2937b1ce77818e5f32c4802dbf2a5511 Mon Sep 17 00:00:00 2001 From: Jon Severinsson Date: Thu, 3 Jul 2014 02:00:00 +0200 Subject: [PATCH] Add new systemd service users in systemd postinst. --- debian/changelog | 2 ++ debian/systemd.postinst | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/debian/changelog b/debian/changelog index 9ec3a8116..919b4aea7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,8 @@ systemd (214-1) UNRELEASED; urgency=medium - Add new symbols file for libsystemd0. * Update symbols file for libgudev-1.0-0. * Remove pre-generated rules and unit files in debian/rules clean target. + * Add new systemd service users in systemd postinst (systemd-timesync, + systemd-network, systemd-resolve) [ Sjoerd Simons ] * debian/patches/shared-include-stdbool.h-in-mkdir.h.patch diff --git a/debian/systemd.postinst b/debian/systemd.postinst index 727aef872..f1f1e3fa3 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -95,6 +95,18 @@ if ! getent group systemd-journal >/dev/null; then addgroup --system systemd-journal fi +if ! getent passwd systemd-timesync >/dev/null; then + adduser --system --group --no-create-home --home /run/systemd systemd-timesync +fi + +if ! getent passwd systemd-network >/dev/null; then + adduser --system --group --no-create-home --home /run/systemd/netif systemd-network +fi + +if ! getent passwd systemd-resolve >/dev/null; then + adduser --system --group --no-create-home --home /run/systemd/resolve systemd-resolve +fi + # initial update of the Message Catalogs database _update_catalog -- 2.39.5