Skip to content

Ability to bind a folder that already has an existing data and folder structure without changing ownership permissions on the existing folder. #533

@jerrywoo96

Description

@jerrywoo96

Hello,

I would like to use ownCloud with an existing folder structure with existing data inside the folder. However, I am unable to find a configuration that works for me.

Here are the attempts that I tried:

  1. Setting user: to 0:65540 allows creation of necessary files and folders in /mnt/data and create symbolic link to /var/www/owncloud/custom. But it tries to change the ownership of the files and folders in /EXISTING_FOLDER_WITH_DATA which is NOT what I want.

  2. Setting user: to 1026:65540 and changing ownership of /mnt/data to 1026:65540, permission to 775 prevents creating a symbolic link for /var/www/owncloud/custom.

services:
  ownCloud:
    container_name: ownCloud
    hostname: ownCloud
    image: owncloud/server:latest
    user: "1026:65540"
    environment:
      OWNCLOUD_DOMAIN: ''
      OWNCLOUD_TRUSTED_DOMAINS: 'owncloud.example.com'
      OWNCLOUD_ADMIN_USERNAME: ${USERNAME}
      OWNCLOUD_ADMIN_PASSWORD: ${PASSWORD}
    volumes:
    - ${DOCKERFOLDER}/ownCloud/mnt/data:/mnt/data:rw
    - /EXISTING_FOLDER_WITH_DATA:/mnt/data/files/Jerry/files/EXISTING_FOLDER_WITH_DATA:ro # /EXISTING_FOLDER_WITH_DATA is owned by `1026:100` with permissions `755`.

Things to Note:
uid 0 and uid 1026 are members of gid 65540.

Goal/Objective:
To be able to access /EXISTING_FOLDER_WITH_DATA in ownCloud WebApp without changing permissions of files and folders within /EXISTING_FOLDER_WITH_DATA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions