]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dma: Change ownership of auth.conf
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 15:22:57 +0000 (15:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 15:22:57 +0000 (15:22 +0000)
This file only needs to be written to by nobody (i.e. the web UI), but
there are other users which need to read it in order to send emails.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/dma

diff --git a/lfs/dma b/lfs/dma
index 39507ff6aa5d24aa84f9e78b2c45ac386df1a1ae..9200de2902f9af028469e38b59516816cda804fa 100644 (file)
--- a/lfs/dma
+++ b/lfs/dma
@@ -81,7 +81,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && make install mailq-link install-spool-dirs install-etc
        install -v -m 755 $(DIR_SRC)/config/dma/dma-cleanup-spool /usr/sbin
        chown -R nobody.nobody /var/ipfire/dma
-       chown nobody.root /var/ipfire/dma/auth.conf
+       chown nobody.mail /var/ipfire/dma/auth.conf
+       chmod 640 /var/ipfire/dma/auth.conf
        ln -svf dma /usr/sbin/sendmail.dma
        /usr/sbin/alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.dma 20
        @rm -rf $(DIR_APP)