Bug 2224606 - grafana user is missing home directory in /etc/passwd
Summary: grafana user is missing home directory in /etc/passwd
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: grafana
Version: 8.9
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Lauren Chilton
QA Contact: Jan Kurik
Jacob Taylor Valdez
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-21 16:10 UTC by Jan Kurik
Modified: 2023-07-24 15:34 UTC (History)
3 users (show)

Fixed In Version: grafana-9.2.10-6.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-162987 0 None None None 2023-07-21 16:11:41 UTC

Description Jan Kurik 2023-07-21 16:10:18 UTC
Description of problem:
grafana user is missing home directory in /etc/passwd

Version-Release number of selected component (if applicable):
grafana-9.2.10-4.el8 and grafana-9.2.10-5.el8

How reproducible:
Always

Steps to Reproduce:
1. On RHEL-8 Install grafana-9.2.10-4.el8 or grafana-9.2.10-5.el8
# yum install -y grafana
2. Check if the home directory of the grafana user is set in the /etc/passwd
# grep grafana /etc/passwd

Actual results:
# grep grafana /etc/passwd
grafana:x:991:991:Grafana user account:/:/sbin/nologin


Expected results:
# grep grafana /etc/passwd
grafana:x:994:991:grafana user account:/usr/share/grafana:/sbin/nologin

Additional info:
The problem is in the grafana.spec file in phase '%pre', where the systemd-sysusers command is not provided with the home directory.


Note You need to log in before you can comment on or make changes to this bug.