Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2025 19:42:22 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5d8efb8f2578 - stable/14 - nuageinit: chmod sudoers directory instead of chmod (again) sudoers file
Message-ID:  <202509171942.58HJgMFb032074@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=5d8efb8f2578a1d94ef81c5157df1754f5dd13ab

commit 5d8efb8f2578a1d94ef81c5157df1754f5dd13ab
Author:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
AuthorDate: 2025-09-11 16:49:56 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-09-17 19:39:23 +0000

    nuageinit: chmod sudoers directory instead of chmod (again) sudoers file
    
    * Set mode of sudoers to 0440.
    
    Reviewed by:            bapt@, jlduran@
    Approved by:            bapt@, jlduran@
    Differential Revision:  https://reviews.freebsd.org/D52438
    
    (cherry picked from commit a5cc9b7b96dcba4d3ee98f2eb58c3f389590ddf0)
---
 libexec/nuageinit/nuage.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua
index 48f54b120615..22140dd06fe5 100644
--- a/libexec/nuageinit/nuage.lua
+++ b/libexec/nuageinit/nuage.lua
@@ -311,10 +311,10 @@ local function addsudo(pwd)
 	end
 	f:close()
 	if chmodsudoers then
-		chmod(sudoers, "0640")
+		chmod(sudoers, "0440")
 	end
 	if chmodsudoersd then
-		chmod(sudoers, "0740")
+		chmod(sudoers_dir, "0750")
 	end
 end
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509171942.58HJgMFb032074>