Missing write permissions on an external local drive in next cloud

What type of hardware are you using: Other(?)
What YunoHost version are you running: 12.1.3 (Bookworm)
What app is this about: Nextcloud

Describe your issue

Hello,

I have a question about using an external USB hard disk as an extension for Nextcloud. In Nextcloud, it should also be available to users as external local storage. So far, however, I have only achieved that this storage is available to users with read rights, write rights for writing directories and files are not available. How can I achieve this?

My approach

  • I have connected this hard disk via USB and mounted it :
    su mount /dev/sdb1 /mnt/data
  • In Nextcloud, I have entered the path /mnt/data as external local storage in the admin settings and assigned access for all users

As a user, I can then see the storage in Nextcloud, including the data and directories on it, but as I said, I have no write permissions.

Thanks in advance!

Marco

Share relevant logs or error messages

i have no logs

Hello @marco_md
My guess is that’s a permission issue. What does ls -la /mnt/data return ? Nextcloud is not able to write in a folder owned by root, for instance.
Try chown -R nextcloud:nextcloud /mnt/data(or, if you have several instances of nextcloud, nextcloud__X:nextcloud__X)

. I have changed the filesystem from exfat to ext4. After that I use your command chown -R nextcloud:nextcloud /mnt/data.

That works for me. :wink:

Thank you