summarylogtreecommitdiffstats
path: root/webthings-gateway.sh
diff options
context:
space:
mode:
Diffstat (limited to 'webthings-gateway.sh')
-rw-r--r--webthings-gateway.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/webthings-gateway.sh b/webthings-gateway.sh
index ef6c895c5ba1..3f8818067ae6 100644
--- a/webthings-gateway.sh
+++ b/webthings-gateway.sh
@@ -11,6 +11,11 @@ if [ ! -d "/etc/webthings-gateway" ]; then
fi
cd /opt/webthings-gateway
-su -c "node build/gateway.js" webthings
+setpriv \
+ --reuid=webthings \
+ --regid=webthings \
+ --init-groups \
+ --inh-caps=-all \
+ node build/gateway.js
# vim:set ts=2 sw=2 et ft=sh: