Bug 2294

Summary: minidlna is running as root
Product: Fedora Reporter: Juan Orti <jorti>
Component: minidlnaAssignee: Andrea Musuruane <musuruan>
Status: RESOLVED FIXED    
Severity: normal CC: jorti
Priority: P5    
Version: unspecified   
Hardware: All   
OS: GNU/Linux   
namespace:
Attachments: Updated SPEC file
tmpfiles.d config
systemd service

Description Juan Orti 2012-04-24 10:51:09 CEST
Although a minidlna user is created in the installation, it's not used while running the service.

It should be specified in the systemd service unit, otherwise the service is running as root.
Comment 1 Juan Orti 2012-04-24 11:44:28 CEST
Created attachment 860 [details]
Updated SPEC file

This is a updated spec file based on 1.0.24-1 with the following improvements:
- tmpfiles.d configuration, so it can write its pid file to /var/run/minidlna as the minidlna user
- Add /var/cache/minidlna and /var/log/minidnla with write permission
- Modify config file to reflect this changes.
Comment 2 Juan Orti 2012-04-24 11:45:35 CEST
Created attachment 861 [details]
tmpfiles.d config

Add automatic creation of /var/run/minidlna at boot
Comment 3 Juan Orti 2012-04-24 11:48:35 CEST
Created attachment 862 [details]
systemd service

Updated version of the systemd service unit, now it launches the service as the minidlna user, and write its pid to a different location.
I have changed the After directive to network.target, because it's the recommended way.
Comment 4 Andrea Musuruane 2012-05-01 13:10:07 CEST
Thank you for reporting this issue. I just built an updated package for all the branches. It should appear soon in updates-testing.