]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/AccessControl.pm
do not allow to change system user passwords
[pve-access-control.git] / PVE / API2 / AccessControl.pm
index a3829fdac5618ed32285f5ef11f163769d3b2eec..0ef31fa2068a70c0349fd7d1222dea96505f0367 100644 (file)
@@ -260,6 +260,8 @@ __PACKAGE__->register_method ({
            } else {
                # only root may change root password
                raise_perm_exc() if $userid eq 'root@pam';
+               # do not allow to change system user passwords
+               raise_perm_exc() if $realm eq 'pam';
            }
        }