Hello Community,
I try to install Nextcloud in following configuration.
Nextcloud has a own User (nextcloud) and a own home in /srv/nextcloud.
The Nextcloud User has as default group www-data so that the Webserver can serve the application.
To set the right permissions I use ACL.
- Default ACL for nextcloud User: rwX
- Default ACL for www-data group inside /srv/nextcloud: rwX
→ Permissions should be 660 for Files and 775 for directories.
I verify it with a “touch test” and the test file has the right permissions.
So I run the installer with:
php occ maintenance:install
–database sqlite
–admin-user admin
–admin-passadmin
–data-dir /srv/nextcloud/data
(SQLite just for testing)
After I run this and trying the page it has a 500error - so I look into the logfile and it shows that it can’t access the database. The filepermissions of all files that the command created has 640 permissions. I think it is the umask - I try to set a default umask with acl but it’s not working.
I think the problem here is the umask of the php process - but how I can modify it for the (OCC) tool - i like that updates are working as normal in future with this tool. Why has the OCC tool no option to force file permissions or umask for it’s creating files?
Can somebody help me with my problem please?