Bug 1925828

Summary: Stubby RPM does not create an user stubby, systemd fails to start the service
Product: [Fedora] Fedora EPEL Reporter: Kai Mosebach <redhat-bugzilla>
Component: stubbyAssignee: aegorenk
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel8CC: aegorenk, pemensik, pwouters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: stubby-0.4.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-10 14:54:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1860924    
Bug Blocks:    

Description Kai Mosebach 2021-02-06 21:26:48 UTC
Description of problem:

Stubby does not create a user stubby, fails to start therefore

Version-Release number of selected component (if applicable):

0.3.1

How reproducible:

# dnf -y install stubby
# id stubby
id: ‘stubby’: no such user

Steps to Reproduce:
1. Install stubby
2. lookup user stubby
3.

Actual results:

Systemd does not start stubby, since it relies on user stubby and its permissions in /var/cache/stubby

Expected results:

Create user, set permissions in /var/cache/stubby accordingly

Additional info:

Comment 1 Kai Mosebach 2021-02-06 21:27:23 UTC
the src rpm does not give any hint about creating a user

Comment 2 aegorenk 2021-02-10 15:53:56 UTC
In Fedora repo this is fixed with the using of DynamicUser in unit file.

I was trying to apply the same changes to the EPEL, but it seems it doesn't work because of:
https://bugzilla.redhat.com/show_bug.cgi?id=1860924

I would give that bug some time to be resolved and apply the same (as Fedora) changes to the EPEL.