Nextcloud Local Share Subfolder - Only workd when all the Mount has www-data group and user permissions...

Hi all,

System:

Webserver: Apache/2.4.66 (Debian) (fpm-fcgi)

Database: mysql 11.8.3

PHP version: 8.4.16

Nextcloud version: 32.0.5 - 32.0.5.0

I have a external drive mounted on the System:

Drive A:

I have 3 Folders:

A B and C

I want to mount folder C as local share (native) in Nextcloud, so I gave permissions to it as www-data:www-data,

Problem is, Nextcloud gives error can’t find the direct path to it unless all the Drive root folder (Drive A) is also www-data:www-data, while I understand what’s going on, is this a limitation of how Apache, php etc can handle access to the system? I don’t want my root folder to have www-data:www-data for security reasons, but it’s seems is all or nothing.

  • What is the mount point of the external Drive A?
  • do you use /etc/fstab to mount external Drive A?

You may consider the use of Bind-Mounts to mount folder C as local share in Nextcloud into another mount point. Example for /etc/fstab:
/media/DriveA/folderC /var/nextcloud_data/share none bind 0 0

1 Like

That works, Thank You!

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