Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support not having root access to Nextcloud data folder #2005

Open
MB-Finski opened this issue Nov 9, 2024 · 1 comment

Comments

@MB-Finski
Copy link
Contributor

MB-Finski commented Nov 9, 2024

Description

In an unprivileged Proxmox lxc install if the data folder is an NFS mounted on the proxmox host and passed to the lxc container as a mount bind the root of the lxc won't have root privileges over the files within the mount. This causes the update script to fail even if www-data is owner of the data folder. Root squashing won't resolve the issue either with the current update script since some operations require root privileges over the files.

It should be fairly straightforward to modify the update script to detect not having root privileges on the mount on the fly and fall back to doing any file manipulations using www-data as the user.

I may look into this if I have time but no promises.

@MB-Finski
Copy link
Contributor Author

MB-Finski commented Nov 9, 2024

Hmm.. Seems like the update actually completes successfully at first but the only offending part in the update script is moving the backup file to the nextcloud data directory. I guess we could just run these commands with 'sudo -u www-data' in any case since the data dir should be owned by www-data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant