nextcloud / nextcloud/nextcloudpi
Feature request: Support not having root access to Nextcloud data folder
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 2.9k
- Forks
- 318
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the update script and reviewing the operations that require root privileges on the mounted data folder. Reproduce the unprivileged Proxmox LXC/NFS bind-mount case, then verify that the update completes by using www-data for file manipulations when root access is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100