From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7yxw-0005bD-2J for ptxdist@pengutronix.de; Tue, 18 Aug 2020 12:35:40 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id BBBB1B1 for ; Tue, 18 Aug 2020 12:35:38 +0200 (CEST) Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gwke1B_ge1K2 for ; Tue, 18 Aug 2020 12:35:35 +0200 (CEST) Received: from adahl by ada.ifak-system.com with local (Exim 4.92) (envelope-from ) id 1k7yxo-0007X5-4z for ptxdist@pengutronix.de; Tue, 18 Aug 2020 12:35:32 +0200 From: Alexander Dahl Date: Tue, 18 Aug 2020 12:35:32 +0200 Message-Id: <20200818103532.27487-1-ada@thorsis.com> Subject: [ptxdist] [PATCH] sudo: targetinstall /etc/sudoers.d with 4 digit permission List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de When installing additional files into /etc/sudoers.d from another package, we got this error (redacted): Incompatible ownership or permissions for '/etc/sudoers.d': sudo: 0.0 755 *****: 0.0 0755 (implicit) One of these packages must be fixed! Build is successful again, if fixed in the sudo package. Signed-off-by: Alexander Dahl --- Notes: Besides: how would one fix this in the other package? I have that case for another set of packages where one creates a folder with 2775 and others should copy files in it, which fails because 0755 are the implicit rights. Recreate that folder in each package? rules/sudo.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/sudo.make b/rules/sudo.make index 985ab8768..dd8c1bb67 100644 --- a/rules/sudo.make +++ b/rules/sudo.make @@ -133,7 +133,7 @@ $(STATEDIR)/sudo.targetinstall: ifdef PTXCONF_SUDO_INSTALL_ETC_SUDOERS @$(call install_alternative, sudo, 0, 0, 0440, /etc/sudoers, n) - @$(call install_copy, sudo, 0, 0, 755, /etc/sudoers.d) + @$(call install_copy, sudo, 0, 0, 0755, /etc/sudoers.d) endif ifdef PTXCONF_SUDO_INSTALL_VISUDO -- 2.27.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de