From 66bb3028e77b5a46547bcd213788cc655e743d71 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 29 Jan 2023 19:38:50 +0100 Subject: Add service user definition Signed-off-by: Georg Pfuetzenreuter --- roleproxy.service | 3 ++- system-user-roleproxy.conf | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 system-user-roleproxy.conf diff --git a/roleproxy.service b/roleproxy.service index 2c53b28..6302c0a 100644 --- a/roleproxy.service +++ b/roleproxy.service @@ -5,7 +5,8 @@ Description=Salt NetBox Role Proxy [Service] -User=roleproxy +User=_roleproxy +Group=_roleproxy EnvironmentFile=/etc/sysconfig/roleproxy ExecStart=/usr/local/bin/roleproxy.py ProtectSystem=strict diff --git a/system-user-roleproxy.conf b/system-user-roleproxy.conf new file mode 100644 index 0000000..2117739 --- /dev/null +++ b/system-user-roleproxy.conf @@ -0,0 +1,3 @@ +# This file is shipped as part of the salt-netbox-roleproxy package. +# Author: Georg Pfuetzenreuter +u _roleproxy - "Salt NetBox Role Proxy" /var/lib/empty - -- cgit v1.2.3