Commit ba8f75e8 authored by ale's avatar ale

Set up dedicated users for each daemon

parent 50958198
Pipeline #796 passed with stages
in 46 seconds
#!/bin/sh
set -e
case "$1" in
configure)
addgroup --system --quiet dovecot-keylookupd
adduser --system --no-create-home --home /run/dovecot-keylookupd \
--disabled-password --disabled-login \
--quiet --ingroup dovecot-keylookupd dovecot-keylookupd
;;
esac
#DEBHELPER#
exit 0
...@@ -6,7 +6,7 @@ Requires=dovecot-keylookupd.socket ...@@ -6,7 +6,7 @@ Requires=dovecot-keylookupd.socket
Type=notify Type=notify
ExecStart=/usr/bin/dovecot-keylookupd --systemd-socket ExecStart=/usr/bin/dovecot-keylookupd --systemd-socket
Restart=on-failure Restart=on-failure
User=dovecot User=dovecot-keylookupd
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
......
...@@ -5,7 +5,7 @@ Description=Dovecot keylookupd socket ...@@ -5,7 +5,7 @@ Description=Dovecot keylookupd socket
ListenStream=/run/dovecot-keylookupd/socket ListenStream=/run/dovecot-keylookupd/socket
SocketMode=660 SocketMode=660
DirectoryMode=755 DirectoryMode=755
SocketUser=dovecot SocketUser=dovecot-keylookupd
SocketGroup=dovecot SocketGroup=dovecot-keylookupd
Accept=false Accept=false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment