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
This commit is contained in:
Jesús Daniel Colmenares Oviedo
2025-09-11 12:49:56 -04:00
parent 9f3330f522
commit a5cc9b7b96
+2 -2
View File
@@ -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