* [ptxdist] [PATCH] avahi: use working defaults for user/group
@ 2024-11-10 23:01 Roland Hieber
0 siblings, 0 replies; only message in thread
From: Roland Hieber @ 2024-11-10 23:01 UTC (permalink / raw)
To: ptxdist; +Cc: Roland Hieber
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 <rhi@pengutronix.de>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-11 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-10 23:01 [ptxdist] [PATCH] avahi: use working defaults for user/group Roland Hieber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox