From 949c511c4e15bd3914b8066a7048087bc1bf351e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 31 Mar 2025 22:16:54 +0200 Subject: [PATCH] api subscription: fix permissions for ceph apt-auth file Use the same one as for the per-product file. Signed-off-by: Thomas Lamprecht --- PVE/API2/Subscription.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Subscription.pm b/PVE/API2/Subscription.pm index 036824f2..77a42434 100644 --- a/PVE/API2/Subscription.pm +++ b/PVE/API2/Subscription.pm @@ -106,7 +106,7 @@ sub write_etc_subscription { # add a generic one to handle the case where a new ceph release was made available while # the subscription info was not yet updated, and as per APT_AUTH.CONF(5) start-with matches. $ceph_auth .= "machine enterprise.proxmox.com/debian/ceph login $info->{key} password $info->{serverid}\n"; - PVE::Tools::file_set_contents("/etc/apt/auth.conf.d/ceph.conf", $ceph_auth); + PVE::Tools::file_set_contents("/etc/apt/auth.conf.d/ceph.conf", $ceph_auth, 0600); } }