openvibers/openvibe.mail Commits

The Mail service runs as the house user (ubuntu) (#7)

OP OpenVibers committed 6 days ago · bf569de3a5 · 1 file, +4 −2

It ran as openvibe, Stalwart's system user, which cannot enter the ubuntu-owned 0750 checkout ovhost keeps:
'Changing to the requested working directory failed: Permission denied' (status=200/CHDIR) at the first deploy.
Stalwart keeps its own user.

Changes

ddiff --git a/deploy/systemd/openvibe-mail.service b/deploy/systemd/openvibe-mail.service
iindex 0fdd685..19a1cf0 100644
---- a/deploy/systemd/openvibe-mail.service
++++ b/deploy/systemd/openvibe-mail.service
@@@ -10,8 +10,10 @@ Wants=network-online.target
[Service]
Type=simple
--User=openvibe
--Group=openvibe
++# The house user, like every other service: ovhost keeps /opt/openvibe.mail ubuntu-owned (0750). openvibe is
++# Stalwart's own system user, and the Node service never needs it (found at the install, 11-07: status=200/CHDIR).
++User=ubuntu
++Group=ubuntu
EnvironmentFile=/etc/openvibe/mail.env
WorkingDirectory=/opt/openvibe.mail
ExecStart=/usr/bin/node server/index.js