mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-08-15 18:04:06 +00:00
install: pdm: fix owner and permissions of config file hierachy
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2d084ae23b
commit
fdb81c1a28
@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user