From fbe2e75bf7e9ae83cf3225408c90a350a2f9a8ca Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 9 Dec 2012 16:59:13 +0100 Subject: [PATCH] Make sysconfdir belong to Bacula user/group and exclude others --- bacula/Makefile.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bacula/Makefile.in b/bacula/Makefile.in index 1abc14ae14..a308e147ac 100755 --- a/bacula/Makefile.in +++ b/bacula/Makefile.in @@ -94,6 +94,13 @@ libtool: Makefile $(LIBTOOL_DEPS) installdirs: $(MKDIR) $(DESTDIR)$(sbindir) $(MKDIR) $(DESTDIR)$(sysconfdir) + chmod 760 $(DESTDIR)$(sysconfdir) + -if test "x$(dir_user)" != "x" ; then \ + chown $(dir_user) $(DESTDIR)$(sysconfdir); \ + fi + -if test "x$(dir_group)" != "x" ; then \ + chgrp $(dir_group) $(DESTDIR)$(sysconfdir); \ + fi $(MKDIR) $(DESTDIR)$(scriptdir) $(MKDIR) $(DESTDIR)$(docdir) $(MKDIR) $(DESTDIR)$(archivedir) -- 2.39.5