nextcloud / nextcloud/nextcloudpi

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

Open
#2,005 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

has-updates
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.