Challenge
When adding a Linux Server to Veeam Backup & Replication using a non-root account and not enabling the "Elevate account privileges automatically" option, the following error is shown:
RPM-based Linux distributions
Installing Installer service Error: Error: error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
• Exit code: 1
Cause
This error occurs when the account specified on the SSH Connection page of the 'New Linux Server' or 'Edit Linux Server' wizard is a non-root account with the option "Elevate account privileges automatically" not selected. Which is required for the persistent Veeam Data Mover service to be installed.
Solution
Key Points
The installation of the Installer service persistent Veeam Data Mover service, while recommended, is only strictly required if the Linux server will be used as a Hardened Repository or as a Backup Proxy. If the Linux server is not used for either of those purposes, the error regarding the failure to install the Veeam Data Mover service when using a non-root account without elevation may be disregarded.
If the persistent Veeam Data Mover service cannot be installed on the Linux server, a non-persistent Data Mover agent will be uploaded to the /tmp/ folder and run via an SSH connection each time Veeam Backup & Replication interacts with the Linux Server.
Note: Use of the non-persistent Data Movers requires that perl be installed.
For more information regarding Veeam Data Movers, please review: Veeam Backup & Replication User Guide: Veeam Data Movers