[debian-edu-commits] [Git][debian-edu/debian-edu-config][personal/gber/icingaweb-fix] Fix permissions issue preventing icingaweb2 from reading the backend config
Guido Berhörster (@gber)
gitlab at salsa.debian.org
Thu Jun 29 08:29:42 BST 2023
Guido Berhörster pushed to branch personal/gber/icingaweb-fix at Debian Edu / debian-edu-config
Commits:
cc08faf1 by Guido Berhoerster at 2023-06-29T09:21:52+02:00
Fix permissions issue preventing icingaweb2 from reading the backend config
The /etc/icingaweb2/modules directory ends up with "drwxrwSrwx" permissions,
missing the "x" bit preventing icingaweb2 from reading the monitoring backend
configuration in /etc/icingaweb2/modules/monitoring/. Instead of adjusting
single files and directories, enforce sensible permissions on all directories
and configuration files.
- - - - -
1 changed file:
- share/debian-edu-config/tools/edu-icinga-setup
Changes:
=====================================
share/debian-edu-config/tools/edu-icinga-setup
=====================================
@@ -94,6 +94,7 @@ setup_icinga() {
domain = ""
resource = "icingaweb_ldap"
EOF
+
# config.ini
cat <<- EOF > /etc/icingaweb2/config.ini
[global]
@@ -188,11 +189,8 @@ setup_icinga() {
EOF
# Adjusts rights to get the web interface working
- chmod 660 /etc/icingaweb2/*.ini
- chmod g+rwx /etc/icingaweb2/enabledModules/
- chmod g+rwx /etc/icingaweb2/modules/monitoring/
- chmod o+x /etc/icingaweb2/modules/monitoring/
- chmod 660 /etc/icingaweb2/modules/monitoring/*.ini
+ find /etc/icingaweb2/ -type f -name '*.ini' -exec chmod 660 {} +
+ find /etc/icingaweb2/ -type d -exec chmod 775 {} +
# Create icingaweb2 log directory
mkdir -p /var/log/icingaweb2/
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/cc08faf1987d4d10bc28acabdff5ec48e134ff39
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/cc08faf1987d4d10bc28acabdff5ec48e134ff39
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20230629/d6229bf6/attachment-0001.htm>
More information about the debian-edu-commits
mailing list