Bug 2252265

Summary: unbound sysusers.d user/group config file incorrectly named; USER & GROUP not installed
Product: [Fedora] Fedora Reporter: pgnd <pgnd>
Component: unboundAssignee: Petr Menšík <pemensik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 39CC: extras-qa, paul.wouters, pemensik, pj.pandit
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: unbound-1.19.0-5.fc40 unbound-1.19.0-5.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-25 00:39:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description pgnd 2023-11-30 13:41:46 UTC
lsb_release -rd
	Description:    Fedora release 39 (Thirty Nine)
	Release:        39

ls -al /usr/lib/sysusers.d/unbound*
	-rw-r--r-- 1 root root 66 Nov  1 20:00 /usr/lib/sysusers.d/unbound.sysusers

rpm -q --whatprovides /usr/lib/sysusers.d/unbound.sysusers
	unbound-libs-1.19.0-1.fc39.x86_64

cat /usr/lib/sysusers.d/unbound.sysusers
	u unbound - "Unbound DNS resolver" /var/lib/unbound /sbin/nologin

systemd-analyze cat-config sysusers.d/ | grep unbound
	(empty)

reading,

	https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format
	https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html

that config file name must be,

	/etc/sysusers.d/*.conf
	/run/sysusers.d/*.conf
	/usr/lib/sysusers.d/*.conf

verifying

	mv /usr/lib/sysusers.d/unbound.sysusers /usr/lib/sysusers.d/unbound.sysusers.conf
	systemd-analyze cat-config sysusers.d/ | grep unbound
		# /usr/lib/sysusers.d/unbound.sysusers.conf
		u unbound - "Unbound DNS resolver" /var/lib/unbound /sbin/nologin

Reproducible: Always

Comment 1 pgnd 2023-12-25 15:16:01 UTC
on a clean install, unbound uid/gid are NOT created/installed; causes perms failures after install/launch

dnf list --installed "unbound" "unbound-utils"
	Error: No matching Packages to list
id unbound
	id: ‘unbound’: no such user
grep unbound /etc/passwd
	(empty)
grep unbound /etc/group
	(empty)

dnf install unbound
	...
	Running transaction
	  Preparing        :                                                                                      1/1
	  Installing       : unbound-utils-1.19.0-1.fc39.x86_64                                                   1/2
	  Installing       : unbound-1.19.0-1.fc39.x86_64                                                         2/2
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: group unbound does not exist - using root
	warning: user unbound does not exist - using root
	warning: group unbound does not exist - using root
	...
	/usr/lib/tmpfiles.d/unbound.conf:1: Failed to resolve user 'unbound': No such process
	...

dnf list --installed "unbound" "unbound-utils"
	unbound.x86_64              1.19.0-1.fc39             @updates
	unbound-utils.x86_64        1.19.0-1.fc39             @updates

id unbound
	id: ‘unbound’: no such user
grep unbound /etc/passwd
	(empty)
grep unbound /etc/group
	(empty)
systemd-analyze cat-config sysusers.d/ | grep unbound
	(empty)

Comment 2 Petr Menšík 2024-01-15 11:08:51 UTC
Fixed by commit f3b35b2d [1], in unbound-1.19.0-5.fc40.

1. https://src.fedoraproject.org/rpms/unbound/c/f3b35b2ddde6229b0c212eb3d33a64e28f1f3d89

Comment 3 Fedora Update System 2024-01-15 12:37:13 UTC
FEDORA-2024-41435d541d has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-41435d541d

Comment 4 Fedora Update System 2024-01-16 01:19:10 UTC
FEDORA-2024-41435d541d has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-41435d541d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-41435d541d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-01-25 00:39:51 UTC
FEDORA-2024-41435d541d has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.