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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user