On this page

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

PDCBackupAgent

pdc-agent.service (systemd)

Account

LocalSystem

root

State folder

C:\ProgramData\PDC-Backup\agent, restricted to SYSTEM and Administrators at install

/var/lib/pdc-agent, key files with mode 0600

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

SeBackupPrivilege, which the agent enables itself. It opens files with backup semantics, so ACLs do not block reading.

CAP_DAC_READ_SEARCH or root

Consistent snapshot

Administrators or LocalSystem for VSS (one shadow copy set for all volumes of the job)

root: LVM (lvcreate, lvremove, mount, umount), btrfs, and ZFS. Without these rights the job backs up live with a warning (snapshot: auto) or fails (snapshot: required).

Save permissions

Owner, group, and DACL need no extra right. The SACL (audit settings) needs SeSecurityPrivilege; without it the SACL is skipped and the run log says so.

Mode, owner, group, and extended attributes use normal file access

Restore files

Write access to the target. SeRestorePrivilege writes regardless of ACLs and sets any owner.

Write access to the target. root restores owners (lchown); without root the files belong to the agent user and the run continues.

Back up an image

LocalSystem or Administrators: raw access to \\.\PhysicalDriveN and VSS devices, USN journal

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 /, /boot, /boot/efi, /usr, the recovery medium, mounted file systems, or active swap are refused.

Power: sleep after job

SeShutdownPrivilege (LocalSystem has it)

systemctl suspend as root or through a polkit rule

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 db_backupoperator in every database or sysadmin; read access to msdb.dbo.backupset. The SQL Server service account needs write access to temp_dir.

dbcreator for a new name; ownership or sysadmin to overwrite

PostgreSQL (dump)

Role that can read all objects (pg_read_all_data or superuser) and CONNECT; globals need a superuser, otherwise set globals: false

CREATEDB; the owners of the objects must exist

PostgreSQL (PITR)

REPLICATION and a replication line in pg_hba.conf; EXECUTE on pg_switch_wal()

Write access to the empty target_dir

MariaDB and MySQL (dump)

SELECT, SHOW VIEW, TRIGGER, EVENT, LOCK TABLES

CREATE and DROP plus all privileges on the target database

Docker

Access to the Docker socket (root or the docker group; Windows: the named pipe) and read access to volume paths

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 VM.Audit on /vms and Sys.Audit on /nodes/<node>

root for qmrestore and pct restore

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.

Last updated Nov 16, 2026