Blame SOURCES/cyrus-sasl-2.1.26-saslauthd-user.patch

bfd35c
diff --git a/saslauthd/saslauthd.mdoc b/saslauthd/saslauthd.mdoc
bfd35c
index 37c6f6e..5b635ab 100644
bfd35c
--- a/saslauthd/saslauthd.mdoc
bfd35c
+++ b/saslauthd/saslauthd.mdoc
bfd35c
@@ -44,7 +44,27 @@ multi-user mode. When running against a protected authentication
bfd35c
 database (e.g. the
bfd35c
 .Li shadow
bfd35c
 mechanism),
bfd35c
-it must be run as the superuser.
bfd35c
+it must be run as the superuser. Otherwise it is recommended to run
bfd35c
+daemon unprivileged as saslauth:saslauth. You can do so by following
bfd35c
+these steps:
bfd35c
+.Bl -enum -compact
bfd35c
+.It
bfd35c
+create directory
bfd35c
+.Pa /etc/systemd/system/saslauthd.service.d/
bfd35c
+.It
bfd35c
+create file
bfd35c
+.Pa /etc/systemd/system/saslauthd.service.d/user.conf
bfd35c
+with content
bfd35c
+.Bd -literal
bfd35c
+[Service]
bfd35c
+User=saslauth
bfd35c
+Group=saslauth
bfd35c
+
bfd35c
+.Ed
bfd35c
+.It
bfd35c
+Reload systemd service file: run
bfd35c
+.Dq systemctl daemon-reload
bfd35c
+.El
bfd35c
 .Ss Options
bfd35c
 Options named by lower\-case letters configure the server itself.
bfd35c
 Upper\-case options control the behavior of specific authentication