]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core198: Update permissions of auth.conf
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 15:27:43 +0000 (15:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 15:27:43 +0000 (15:27 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/backup/backup.pl
config/rootfiles/core/198/update.sh

index 8988427eae22dbc519580f9b9f62a5fe401f065f..9a54b50d3c8a765b9bebd723829918719579f9c8 100644 (file)
@@ -358,6 +358,17 @@ restore_backup() {
        /etc/init.d/openvpn-n2n restart
        /etc/init.d/openvpn-rw restart
 
+       #
+       # Core Update 198
+       #
+
+       # Add the suricata user to the mail group
+       usermod -a -G mail suricata
+
+       # Change ownership & permissions of auth.conf
+       chmod 640 /var/ipfire/dma/auth.conf
+       chown nobody:mail /var/ipfire/dma/auth.conf
+
        return 0
 }
 
index e258f65d7f6641257ba1f3508f2a4bed1def52d9..bb08f493eb91d9ec05c00ea9da9e0b954e001481 100644 (file)
@@ -46,6 +46,13 @@ if ! [ -d "/var/run/suricata" ]; then
        chown suricata:suricata /var/run/suricata
 fi
 
+# Add the suricata user to the mail group
+usermod -a -G mail suricata
+
+# Change ownership & permissions of auth.conf
+chmod 640 /var/ipfire/dma/auth.conf
+chown nobody:mail /var/ipfire/dma/auth.conf
+
 # update linker config
 ldconfig