Hello together,
I have the following strange problem:
when a file is uploaded to EGroupware, under the hood the system gives root ownership and the following permisssions in the …files/sqlfs… folder:
drwx------ 2 root root 4096 May 14 08:21 .
drwx------ 100 www-data www-data 4096 May 14 08:21 …
-rw-r–r-- 1 root root 2226 May 14 08:21 3019700
-rw-r–r-- 1 root root 1700 May 14 08:21 3019701
-rw-r–r-- 1 root root 3009 May 14 08:21 3019702
-rw-r–r-- 1 root root 58683 May 14 08:21 3019704
…
But then when it tries to load the file it gives an error:
PHP message: PHP Warning: fopen(/var/lib/egroupware/default/files/sqlfs/03/01/97/3019718): failed to open stream: Permission denied in /var/www/egroupware/api/src/Vfs/Sqlfs/StreamWrapper.php on line 317
PHP message: #1 /var/www/egroupware/api/src/Vfs/Sqlfs/StreamWrapper.php(317): fopen(’/var/lib/egroup…’, ‘w’)
PHP message: #2 /var/www/egroupware/api/src/Vfs/Links/StreamWrapper.php(355): EGroupware\Api\Vfs\Sqlfs\StreamWrapper->stream_open(‘achelper.links:…’, ‘w’, 0, ‘/apps/infolog/2…’)
PHP message: #3 [internal function]: EGroupware\Api\Vfs\Links\StreamWrapper->stream_open(‘achelper.links:…’, ‘w’, 0, ‘/apps/infolog/2…’)
PHP message: #4 /var/www/egroupware/api/src/Vfs/StreamWrapper.php(317): fopen(‘achelper.links:…’, ‘w’, false, Resource id #1)
PHP message: #5 [internal function]: EGroupware\Api\Vfs\StreamWrapper->stream_open(‘vfs://default/w…’, ‘w’, NULL, NULL)
PHP message: #6 /var/www/egroupware/api/src/WebDAV/Server/Filesystem.php(527): fopen(‘vfs://default/w…’, ‘w’)
PHP message: #7 /var/www/egroupware/api/src/Vfs/WebDAV.php(900): HTTP_WebDAV_Server_Filesystem->PUT(Array)
PHP message: #8 /var/www/egroupware/api/src/WebDAV/Server.php(1842): EGroupware\Api\Vfs\WebDAV->PUT(Array)
PHP message: #9 /var/www/egroupware/api/src/WebDAV/Server.php(304): HTTP_WebDAV_Server->http_PUT()
PHP message: #10 /var/www/egroupware/api/src/Vfs/WebDAV.php(72): HTTP_WebDAV_Server->ServeRequest(NULL)
PHP message: #11 /var/www/egroupware/webdav.php(88): EGroupware\Api\Vfs\WebDAV->ServeRequest()
PHP message: #12 {main}
when I set everything to www-data it can load the file, but new files are again created as root.
Thank for your support and best regards,
Alex