Replace nogroup with dedicated user group

This commit is contained in:
x4u 2023-07-23 14:21:36 +08:00
parent e9946f81a0
commit 82f31d6b72

View file

@ -117,8 +117,7 @@ After=network.target
[Service]
Environment="CONDUIT_CONFIG=/etc/matrix-conduit/conduit.toml"
User=conduit
Group=nogroup
# On RHEL: Group=nobody
Group=conduit
Restart=always
ExecStart=/usr/local/bin/matrix-conduit
@ -198,8 +197,7 @@ If you use the default database path you also need to run this:
```bash
sudo mkdir -p /var/lib/matrix-conduit/
sudo chown -R conduit:nogroup /var/lib/matrix-conduit/
# On RHEL: sudo chown -R conduit:nobody /var/lib/matrix-conduit/
sudo chown -R conduit:conduit /var/lib/matrix-conduit/
sudo chmod 700 /var/lib/matrix-conduit/
```