Run the Agent service as a different user
By default, the Resilio Agent installed via a package manager, runs under the rslconsole user. You can configure it to run under a different account.
To run the Agent as a different user on Linux distributions with the systemd service manager, proceed as follows:
-
(Optional) Create a user and group to run the Resilio Agent service:
$ sudo groupadd -r resilioAgentService $ sudo useradd -g resilioAgentService -r -m -s /sbin/nologin resilioAgentService -
Stop the Resilio Agent service:
sudo systemctl stop resilio-agent -
Navigate to
/etc/systemd/system/resilio-agent.service.d(create the directory if it doesn't exist), and create theoverride.conffile. -
Edit the
override.conffile and add the following:[Service] User=resilioAgentService Group=resilioAgentService Environment="AGENT_USER=resilioAgentService" Environment="AGENT_GROUP=resilioAgentService" -
Reload the unit files:
sudo systemctl daemon-reload -
Start the Resilio Agent service:
sudo systemctl start resilio-agent