From db3395bb83c577ee14be4de07ff12fe51c5ed478 Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Tue, 18 Jul 2017 17:37:27 +0200 Subject: [PATCH] Fix #1450 : restore setgid bit on pvemailforward binary When calling chown on a setuid/setgid executable, the setuid/setgid bits are reset to 0. So ordering matters here. See chown(2). --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 9ce61388..dc9375ab 100755 --- a/debian/rules +++ b/debian/rules @@ -11,8 +11,8 @@ override_dh_usrlocal: override_dh_fixperms: dh_fixperms - find debian -name 'pvemailforward' -exec chmod 2755 {} + find debian -name 'pvemailforward' -exec chown root:www-data {} + + find debian -name 'pvemailforward' -exec chmod 2755 {} + find debian -type d -name 'pveproxy' -exec chown www-data:www-data {} + find debian -type d -name 'pveproxy' -exec chmod 700 {} +