When setting vhost_perms_defaultowned_dir to "2750" webapp-config creates the directories with the wrong permission, for example this results in: d-w-r-sr-T 2 root www 60 Sep 30 18:34 cgi-bin instead of: drwxr-s--- 2 root www 6 Sep 30 18:29 cgi-bin Reproducible: Always The mentioned issue happens with app-admin/webapp-config-1.50.16-r4
This may be related to bug 434894.
Can you test webapp-config-1.50.19
(In reply to comment #2) > Can you test webapp-config-1.50.19 Unfortunately the same behaviour as with 1.50.16-r4. Btw. 'webapp-config --version' returns 1.50.18, while 1.50.19 is installed: equery list app-admin/webapp-config * Searching for webapp-config in app-admin ... [IP-] [ ] app-admin/webapp-config-1.50.19:0 webapp-config --version 1.50.18
(In reply to comment #3) > (In reply to comment #2) > > Can you test webapp-config-1.50.19 > > Unfortunately the same behaviour as with 1.50.16-r4. > > Btw. 'webapp-config --version' returns 1.50.18, while 1.50.19 is installed: > > equery list app-admin/webapp-config > * Searching for webapp-config in app-admin ... > [IP-] [ ] app-admin/webapp-config-1.50.19:0 > > webapp-config --version > 1.50.18 Yeah I know about that one, it was minor so I let it go when I pushed out 1.50.19. The next one will have that correct. I seriously need to give webapp-config some love.
This bug is not related to bug 434894, and if it then the patch we applied does not fix this bug. After using the HEAD^ version of webapp-config I changed the vhost_perms_defaultowned_dir value to "2750" and reinstalled moodle 2.4.1, checking the directories I came to this: Octo_Azul localhost # ls -alh total 28K drwxr-xr-x 7 root root 4.0K Mar 18 19:55 . drwxr-xr-x 3 root root 4.0K Feb 17 23:30 .. d-w-rwxrwT 2 root root 4.0K Mar 18 19:55 cgi-bin d-w-rwxrwT 2 root root 4.0K Mar 18 19:55 error drwxr-xr-x 8 root root 4.0K Mar 18 19:55 htdocs d-w-rwxrwT 2 root root 4.0K Mar 18 19:55 icons drwxrwxr-x 2 apache apache 4.0K Mar 18 19:55 moodle Where cgi-bin, error, and icons were all directories whose permissions were changed by editing the vhost_perms_defaultowned_dir to "2750". But the correct permissions should be this: drwxr-s--- 2 root root 4.0K Mar 18 19:56 test This leads me to believe that these file permissions are either changed in a different file, or different location in worker.py.