# Run AxoRouter as non-root

To run AxoRouter as a non-root user, set the `AXO_USER` and `AXO_GROUP` environment variables to the user’s username and groupname on the host you want to deploy AxoRouter. For details, see [Advanced installation options](../../../../docs/axoflow/provisioning/axorouter/linux/advanced-options/index.md).

Operators must have access to the following commands:

  * `/usr/bin/systemctl * axolet.service`: Controls the `axolet.service` systemd unit. Usually `*` is `start`, `stop`, `restart`, `enable`, and `status`. Used by the operators for troubleshooting.

  * `/usr/local/bin/configure-axolet`: Creates initial `axolet` configuration and enables/starts the `axolet` service. Executed by the bootstrap script.

  * Command to install and upgrade the `axolet` package. Executed by the bootstrap script if the packages aren’t already installed.

    * On RPM-based Linux distributions: `/usr/bin/rpm -Uv axo*.rpm`
    * On DEB-based Linux distributions: `/usr/bin/dpkg -i axo*.deb`


  * `/usr/bin/systemctl * axorouter.service`: Controls the `axorouter.service` systemd unit. Usually `*` is `start`, `stop`, `restart`, `enable`, and `status`. Used by the operators for troubleshooting.

  * `/usr/local/bin/configure-axorouter`: Creates the initial axorouter configuration and enables/starts the axorouter service. Executed by the bootstrap script.

  * Command to install and upgrade the axorouter and the axolet package. Executed by the bootstrap script if the packages aren’t already installed.

    * On RPM-based Linux distributions: `/usr/bin/rpm -Uv axo*.rpm`
    * On DEB-based Linux distributions: `/usr/bin/dpkg -i axo*.deb`



You can permit the `syslogng` user to run these commands by running on of the following:

  * Package: 
  * RPM 
  * DEB 


```
 
    sudo tee /etc/sudoers.d/configure-axoflow <<A
    syslogng ALL=(ALL) NOPASSWD: /usr/local/bin/configure-axolet
    syslogng ALL=(ALL) NOPASSWD: /bin/systemctl * axolet.service
    # for rpm installation:
    syslogng ALL=(ALL) NOPASSWD: /usr/bin/rpm -Uv axo*.rpm
    A
    
    sudo tee /etc/sudoers.d/configure-axorouter <<A
    syslogng ALL=(ALL) NOPASSWD: /usr/local/bin/configure-axorouter
    syslogng ALL=(ALL) NOPASSWD: /bin/systemctl * axorouter.service
    # for rpm installation:
    syslogng ALL=(ALL) NOPASSWD: /usr/bin/rpm -Uv axo*.rpm
    A
    
```
```
 
    sudo tee /etc/sudoers.d/configure-axorouter <<A
    syslogng ALL=(ALL) NOPASSWD: /usr/local/bin/configure-axorouter
    syslogng ALL=(ALL) NOPASSWD: /bin/systemctl * axorouter.service
    # for deb installation:
    syslogng ALL=(ALL) NOPASSWD: /usr/bin/dpkg -i axo*.deb
    A
    
    sudo tee /etc/sudoers.d/configure-axorouter <<A
    syslogng ALL=(ALL) NOPASSWD: /usr/local/bin/configure-axorouter
    syslogng ALL=(ALL) NOPASSWD: /bin/systemctl * axorouter.service
    # for deb installation:
    syslogng ALL=(ALL) NOPASSWD: /usr/bin/rpm -Uv axo*.deb
    A
    
```