Ensure write permissions in nextdata volume root #116

Open
opened 2026-08-18 12:52:34 +00:00 by simon · 2 comments
Member

We had issues with Nextcloud when restarting our VMs where the permissions on the root path of the nextdata volume got changed to the root user.

While the core issue probably lays in our system update routine, ensuring the correct access to the root directory (not recursively) would make the app itself more resilient against this.

Example solution in wordpress:

chown -R --from=root:root www-data:www-data /var/www/html/wp-content/

Proposal to add:

chown --from=root:root www-data:www-data /var/www/html/data/
We had issues with Nextcloud when restarting our VMs where the permissions on the root path of the nextdata volume got changed to the root user. While the core issue probably lays in our system update routine, ensuring the correct access to the root directory (not recursively) would make the app itself more resilient against this. Example solution in wordpress: https://git.coopcloud.tech/coop-cloud/wordpress/src/commit/fadb247d471f5241adf35e5e81427735a8b78b55/entrypoint.sh.tmpl#L57 Proposal to add: ``` chown --from=root:root www-data:www-data /var/www/html/data/ ```
Owner

Looks safe to add this. Was it only the nextdata that was changed? Or also other volumes where maybe it did not directly cause an issue?

Looks safe to add this. Was it only the nextdata that was changed? Or also other volumes where maybe it did not directly cause an issue?
Author
Member

was only nextdata

was only nextdata
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/nextcloud#116