I use dokuwiki on a Linux server. I am not administrator neither the only user.
The way administrator configures html usage is the following (let say my user is john)
- primary group is normally john
- www-data is member of the group john
initially when i installed CMS (i do it also for a WordPress), the ownership is john:john, and permissions are set to 02770 (setgid on and no right for all) for directories, and 0660 for files.
When creating pages with dokuwiki, the setgid is correctly taken into account, in order new directories (namespaces) and files have www-data:john as owner:group
*** BUG : ***
When uploading with mediamanager, the setgid seems not used : files are upload with www-data:www-data ownership
It is a problem to create archive afterwards (tar -czvf ....) because i have no right
I don't like to solve the problem allowing read (or write) by all users, considering that dokuwiki works properly with the wiki pages.
To arrange things i can ask my administrator, or remove media files from the mediamanager to upload instead using ftp, or make use of http://www.dokuwiki.org/tips:fixperms.php
solution. All that stuff is not satisfactory.
Is there anybody able to check mediamanager php code to confirm this behavior, and eventually propose a solution ?