Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436680 - app-admin/webapp-config wrong permissions for vhost_perms_defaultowned_dir
Summary: app-admin/webapp-config wrong permissions for vhost_perms_defaultowned_dir
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-30 16:40 UTC by Christian Affolter
Modified: 2018-07-21 22:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Affolter 2012-09-30 16:40:00 UTC
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
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-09-30 18:51:22 UTC
This may be related to bug 434894.
Comment 2 Anthony Basile gentoo-dev 2012-09-30 21:46:49 UTC
Can you test webapp-config-1.50.19
Comment 3 Christian Affolter 2012-09-30 22:36:52 UTC
(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
Comment 4 Anthony Basile gentoo-dev 2012-10-01 00:54:40 UTC
(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.
Comment 5 Devan Franchini (RETIRED) gentoo-dev 2013-03-19 00:23:48 UTC
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.