Was this page helpful?
Caution
You're viewing documentation for a previous version of ScyllaDB Enterprise. Switch to the latest stable version.
Topic: Planning and setup
By default, Scylla runs as user scylla
in group scylla
. The following procedure will allow you to use a custom user and group to run Scylla.
1. Create the new user and update file permissions
useradd test
groupadd test
usermod test -G test
chown -R test:test /var/lib/scylla
Edit /etc/sysconfig/scylla-server
and change the USER and GROUP
USER=test
GROUP=test
Edit /etc/systemd/system/multi-user.target.wants/scylla-server.service
User=test
Edit /etc/systemd/system/multi-user.target.wants/node-exporter.service
User=test
Group=test
Edit /usr/lib/systemd/system/scylla-jmx.service
User=test
Group=test
Reload the daemon settings and start Scylla and node_exporter
systemctl daemon-reload
systemctl start scylla-server
systemctl start node-exporter
At this point, all services should be started as test:test user:
test 8760 1 11 14:42 ? 00:00:01 /usr/bin/scylla --log-to-syslog 1 --log-to-std ...
test 8765 1 12 14:42 ? 00:00:01 /opt/scylladb/jmx/symlinks/scylla-jmx -Xmx256m ...
test 13638 1 0 14:30 ? 00:00:00 /usr/bin/node_exporter --collector.interrupts
Was this page helpful?