From: Michael Tremer Date: Tue, 7 Oct 2025 15:27:43 +0000 (+0000) Subject: core198: Update permissions of auth.conf X-Git-Tag: v2.29-core198~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1618483dec4b1421106b8f42cdeaa3d779175b8;p=ipfire-2.x.git core198: Update permissions of auth.conf Signed-off-by: Michael Tremer --- diff --git a/config/backup/backup.pl b/config/backup/backup.pl index 8988427ea..9a54b50d3 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -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 } diff --git a/config/rootfiles/core/198/update.sh b/config/rootfiles/core/198/update.sh index e258f65d7..bb08f493e 100644 --- a/config/rootfiles/core/198/update.sh +++ b/config/rootfiles/core/198/update.sh @@ -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