Browse Source

Start script hardcodes file permissions mask to 077 (600), so the nsslapd-*log-mode configuration attributes don't work
https://bugzilla.redhat.com/show_bug.cgi?id=495522
Resolves: bug 495522
Bug Description: Start script hardcodes file permissions mask to 077 (600), so the nsslapd-*log-mode configuration attributes don't work
Reviewed by: nkinder (Thanks!)
Fix Description: Use umask 002 for the directory server process
Platforms tested: Fedora 11 x86_64
Flag Day: no
Doc impact: no

Rich Megginson 16 years ago
parent
commit
60c49ddc29
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wrappers/initscript.in

+ 1 - 0
wrappers/initscript.in

@@ -161,6 +161,7 @@ start() {
                 # start the directory server in a subshell so that the instance specific
                 # init config environment will not apply to any other instance
                 (
+                    umask 002 # reset umask to allow logs and other files modes to be explicitly set
                     [ -f @initconfigdir@/@package_name@-$instance ] && . @initconfigdir@/@package_name@-$instance
                     $exec -D $instbase/slapd-$instance -i $pidfile -w $startpidfile
                 )