Skip to content

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:

  1. (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
    
  2. Stop the Resilio Agent service:

    sudo systemctl stop resilio-agent
    
  3. Navigate to /etc/systemd/system/resilio-agent.service.d (create the directory if it doesn't exist), and create the override.conf file.

  4. Edit the override.conf file and add the following:

    [Service]  
    User=resilioAgentService
    Group=resilioAgentService
    Environment="AGENT_USER=resilioAgentService"
    Environment="AGENT_GROUP=resilioAgentService"
    
  5. Reload the unit files:

    sudo systemctl daemon-reload
    
  6. Start the Resilio Agent service:

    sudo systemctl start resilio-agent