5.7 Permissions and service accounts
The agent runs as a system service with far-reaching rights because it must read all files, create shadow copies, and write restores. This page names the account it runs under, which right each task needs, and what the web interface roles trigger on the agent.
Service account and state folder
Property | Windows | Linux |
|---|---|---|
Service |
|
|
Account | LocalSystem | root |
State folder |
|
|
Network | Outbound to the server only (port 8444) | Outbound to the server only (port 8444) |
Installing needs administrator or root rights once. After that the agent initiates the connection itself and opens no inbound port. The state folder can be moved with --state-dir or PDC_AGENT_DIR (section 5.2 Enrollment and identity).
What the agent stores and what it does not
The agent does not store repository passphrases or storage credentials. The password of its own repository key (one per agent and repository) arrives with each job over the mutually authenticated TLS session and stays in memory for that job only. The repository passphrase stays on the server.
The agent checks the server against its pinned key (
server.pins) and accepts updates only with the pinned signing key (package.key).The cache (encrypted index and snapshot files) is in
<state folder>/cache.Passwords of database jobs are job credentials: the agent passes them through environment variables (
PGPASSWORD,MYSQL_PWD) or the login, never on a command line. The same account (root, SYSTEM) can read environment variables on the agent machine.
Rights per task
Task | Windows | Linux |
|---|---|---|
Read all files |
|
|
Consistent snapshot | Administrators or LocalSystem for VSS (one shadow copy set for all volumes of the job) | root: LVM ( |
Save permissions | Owner, group, and DACL need no extra right. The SACL (audit settings) needs | Mode, owner, group, and extended attributes use normal file access |
Restore files | Write access to the target. | Write access to the target. root restores owners ( |
Back up an image | LocalSystem or Administrators: raw access to | root: read block devices, LVM and ZFS snapshots |
Restore an image to a disk | LocalSystem: lock volumes, raw writes. The system disk is refused. | root: write the target device. Disks holding |
Power: sleep after job |
|
|
Low priority | No extra right | Lowering needs no right; restoring at the end of the job needs root |
Applications and virtual machines
The agent connects with the account from the job. Only for SQL Server without a user name does it use the Windows login of the service account.
Workload | Backup needs | Restore needs |
|---|---|---|
SQL Server | Login with |
|
PostgreSQL (dump) | Role that can read all objects ( |
|
PostgreSQL (PITR) |
| Write access to the empty |
MariaDB and MySQL (dump) |
|
|
Docker | Access to the Docker socket (root or the | Plus write access to those paths |
Hyper-V | Agent on the host as LocalSystem or Administrators. The Hyper-V Administrators group is not enough to attach VHDX files. | Same account; overwrite also stops and removes the original VM |
Proxmox | Agent on the node as root; API token with | root for |
For more on the individual workloads, see chapter 06 Jobs.
Scripts and roles
Pre and post scripts run with the agent's rights (LocalSystem or root). Therefore only the admin role may create, change, or remove the scripts of a job. The operator role can still edit the other fields of a job and run it.
Roles limit the web API, not what the agent does with a request:
Role | Consequence on the agent |
|---|---|
restore | Can write files on every agent: a restore to a path writes backed-up files, also from other machines' snapshots, into any folder with the agent's rights and overwrites existing files when the conflict setting is overwrite. ZIP downloads deliver every file of every snapshot. Restoring a backup with stored credentials to a different agent needs admin. |
operator | Additionally defines what agents back up and where, runs jobs, browses agents' file systems live, and updates agents to the current package. Scripts, tool folders, recovery tokens, and prepare-for-push scripts stay with admin. |
admin | May do everything, including revoking agents, downgrades, and restores to other agents. |
A compromised agent can read the data blobs of all repositories it uses, including other machines' backups in a shared repository. It cannot read other agents' snapshot files and keys, reach configuration backup repositories, or delete other agents' data. Where machines must not see each other's data, use one repository per machine (see chapter 08 Repositories and Storage).
Reduced-rights mode
A mode with reduced rights for file-only agents (Windows: virtual service account with SeBackupPrivilege; Linux: dedicated user with CAP_DAC_READ_SEARCH, CAP_FOWNER, CAP_CHOWN) works for live backups but not for snapshots. The installers do not set it up.
Local users and own machines
Local users never act with the agent's rights, only with their own identity (section 5.6 Tray app and self-service). For web users who may see only their own machines, see chapter 11 Users and Security.