]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Core Update 185: Ensure correct permissions of /etc/sudoers.d/
authorPeter Müller <peter.mueller@ipfire.org>
Sat, 17 Feb 2024 20:40:39 +0000 (20:40 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 17 Feb 2024 20:40:39 +0000 (20:40 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/185/update.sh

index 8671de9827156d7641718d9031f4944ba540ec1e..c81b68cab36d0f68086382b94c48136712fb71c1 100644 (file)
@@ -51,6 +51,10 @@ ldconfig
 # Apply local configuration to sshd_config
 /usr/local/bin/sshctrl
 
+# Fix permissions of /etc/sudoers.d/
+chmod -v 750 /etc/sudoers.d
+chmod -v 640 /etc/sudoers.d/*
+
 # Start services
 telinit u
 /etc/init.d/suricata restart