From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 11 Nov 2024 10:08:21 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tAQPF-000YMJ-19 for lore@lore.pengutronix.de; Mon, 11 Nov 2024 10:08:21 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tAQPF-000077-2V; Mon, 11 Nov 2024 10:08:21 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tAQOp-00006t-AV; Mon, 11 Nov 2024 10:07:55 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tAQOp-000DOX-0S; Mon, 11 Nov 2024 10:07:55 +0100 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tAQOp-006rgw-0I; Mon, 11 Nov 2024 10:07:55 +0100 From: Roland Hieber To: ptxdist@pengutronix.de Date: Mon, 11 Nov 2024 00:01:22 +0100 Message-Id: <20241110230121.1282197-1-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] avahi: use working defaults for user/group X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false As stated by the (slightly outdated) comments, no user or group named "avahi" or "avahi-autoipd" exists in the default /etc/passwd or /etc/group in PTXdist, so Avahi will complain about the missing user/group and refuse to start with the default configuration. Set the default values to the unprivileged "nobody"/"nogroup" instead, which already exist, and remove the outdated comments. Signed-off-by: Roland Hieber --- rules/avahi.in | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/rules/avahi.in b/rules/avahi.in index a038a1efeb2a..90ef7088110b 100644 --- a/rules/avahi.in +++ b/rules/avahi.in @@ -74,22 +74,16 @@ if AVAHI_DAEMON config AVAHI_USER string prompt "user for running the avahi (mDNS/DNS-SD) daemon" - default "avahi" + default "nobody" help Enter the user name to run the avahi (mDNS/DNS-SD) daemon with. - The PTXdist standard configuration has only root, so if you want - to use the avahi default user "avahi" you have to create - a related user yourself. config AVAHI_GROUP string prompt "group for running the avahi (mDNS/DNS-SD) daemon" - default "avahi" + default "nogroup" help Enter the group name to run the avahi (mDNS/DNS-SD) daemon with. - The PTXdist standard configuration has only root, so if you want - to use the avahi default group "avahi" you have to create - a related group yourself. config AVAHI_SERVICES bool @@ -130,22 +124,16 @@ if AVAHI_AUTOIP config AVAHI_AUTOIP_USER string prompt "user for running the avahi autoip (IPv4LL) daemon" - default "avahi-autoipd" + default "nobody" help Enter the user name to run the avahi autoip (IPv4LL) daemon with. - The PTXdist standard configuration has only root, so if you want - to use the avahi default user "avahi-autoipd" you have to create - a related user yourself. config AVAHI_AUTOIP_GROUP string prompt "group for running the avahi autoip (IPv4LL) daemon" - default "avahi-autoipd" + default "nogroup" help Enter the group name to run the avahi autoip (IPv4LL) daemon with. - The PTXdist standard configuration has only root, so if you want - to use the avahi default group "avahi-autoipd" you have to create - a related group yourself. endif config AVAHI_COMPAT -- 2.39.5