prometheus process is running with root user unnecessarily
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
prometheus-snap |
Fix Committed
|
Wishlist
|
James Simpson |
Bug Description
At this moment, the snap installs a systemd unit file without specifying a user to run prometheus so root is used. It listens on port 9090 so it could be run as non-root user.
$ snap list prometheus
Name Version Rev Tracking Publisher Notes
prometheus 2.20.1 32 2/stable canonical-is-snaps -
$ ps aux | grep '/snap/
root 787517 0.0 0.0 4632 856 ? Ss 01:40 0:00 /bin/sh /snap/prometheu
root 787554 2.2 18.9 939060 189472 ? SLl 01:40 0:01 /snap/prometheu
$ systemctl cat snap.prometheus
# /etc/systemd/
[Unit]
# Auto-generated, DO NOT EDIT
Description=Service for snap application prometheus.
Requires=
Wants=network.
After=snap-
X-Snappy=yes
[Service]
EnvironmentFile
ExecStart=
SyslogIdentifie
Restart=on-failure
WorkingDirector
TimeoutStopSec=900
Type=simple
[Install]
WantedBy=
Changed in prometheus-snap: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
assignee: | nobody → James Simpson (jsimpso) |
Solution tested and proposed here: https:/ /code.launchpad .net/~jsimpso/ prometheus- snap/+git/ prometheus- snap/+merge/ 428753