From fdb81c1a28bb80cdc791e111657d6db7a641a1dd Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 16 Dec 2024 22:37:04 +0100 Subject: [PATCH] install: pdm: fix owner and permissions of config file hierachy Signed-off-by: Thomas Lamprecht --- Proxmox/Install.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 24c5bc5..cbb5d88 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -1464,7 +1464,9 @@ _EOD file_write_all("$targetdir/$user_cfg_fn", "user: root\@pam\n\temail ${mailto}\n"); chroot_chown($targetdir, $base_cfg_path, user => 'www-data', recursive => 1); - chroot_chmod($targetdir, $base_cfg_path, mode => '0700'); + chroot_chmod($targetdir, $base_cfg_path, mode => '01770'); + chroot_chmod($targetdir, "$base_cfg_path/access", mode => '0750'); + chroot_chown($targetdir, "$base_cfg_path/access/user.cfg", user => 'root', group => 'www-data'); } };