Nextcloud (Snap) 0770 Permission Denied on rclone Google Drive Mount (chown has no effect)

:memo: Post Content:

Hello everyone,

I am facing a permission issue with Nextcloud installed via Snap, and I would really appreciate some guidance.

:small_blue_diamond: System Information

  • OS: Debian (latest stable)

  • Nextcloud installation method: Snap

  • Storage: Google Drive mounted using rclone

  • Mount type: rclone mount (FUSE)


:small_blue_diamond: What Happened

Initially, I installed Nextcloud using Docker, but I encountered API-related errors. Because of that, I switched to the Snap version of Nextcloud.

Since my local disk space was insufficient, I mounted my Google Drive using rclone and configured it as storage.

Interestingly:

  • Immich works perfectly with the same mount.

  • However, Nextcloud throws a permission error (0770).


:small_blue_diamond: The Problem

Nextcloud reports a permission error related to directory access (0770).

Even when I run:

chown -R www-data:www-data /mounted_directory
chmod -R 0770 /mounted_directory

The ownership and permissions do not actually change. It seems like the permissions are not being applied to the mounted directory.


:small_blue_diamond: What I Suspect

I suspect this might be related to:

  • Snap confinement restrictions

  • UID/GID mismatch

  • rclone FUSE mount permissions

  • AppArmor limitations


:small_blue_diamond: My Questions

  1. Is Snap Nextcloud allowed to access rclone FUSE mounts by default?

  2. Do I need to connect additional Snap interfaces?

  3. Should I mount rclone with specific uid/gid parameters?

  4. Is there a recommended way to use Google Drive as primary storage with Snap Nextcloud?


Any help would be greatly appreciated.
Thank you in advance :folded_hands:

Hey @Kadir_Gokduman, welcome to the Nextcloud community and thanks for supporting Nextcloud snap :handshake:

Sorry to hear you are having issues with your Nextcloud snap installation. If you’ve come this far, you’re on the right track! There is a good chance someone in the community has had a similar issue and knows how to resolve it.

Below are some links to how-to’s answering frequently asked questions and may help you help yourself;

Pay special attention to the docs pertaining to mounting external media and permissions / privileges:

What permissions should external media have?

See FAQ’s and Snap confinement

Removable media or external storage must be mounted to either /media or /mnt as root with root permissions and connected to Snap!

The interface providing the ability to access removable media is not automatically connected upon install, so if you’d like to use external storage (or otherwise use a device in /media or /mnt for data), you need to give the snap permission to access removable media by connecting that interface:

sudo snap connect nextcloud:removable-media

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.