Owncloud: external sotrage (USB) do not permit to load files

I recently installed for Dietpi+Owncloudin order to use an external USB drive as storage for Owncloud.
I can configure the USB drive, but when try to load some files, get this message “You don’t have permission to upload or create files here”
Mounting directory is chmod 777, I found something here https://forum.owncloud.org/viewtopic.php?f=29&t=23035 but still not able to load my files into the USB drive trough Owncloud…
Any suggestion is appreciated (I’m newbie…)

Hi Fleaplc,

I’d like to check permissions and filesystem type.

Can you please paste the results of the following:

blkid
ls -lha /mnt/dietpi_userdata

this is the result of “blkid”:

/dev/mmcblk0: PTUUID=“0000b6e5” PTTYPE=“dos”
/dev/mmcblk0p1: SEC_TYPE=“msdos” LABEL=“BOOT” UUID=“CB13-72D2” TYPE=“vfat” PARTUUID=“0000b6e5-01”
/dev/mmcblk0p2: UUID=“7175cdfb-fb8c-4533-8090-a22948e645ac” TYPE=“ext4” PARTUUID=“0000b6e5-02”
/dev/sda1: LABEL=“SCHNIEDER” UUID=“6C8B-6516” TYPE=“vfat” PARTLABEL=“Basic data partition” PARTUUID=“d91ecfcd-440a-45d4-8c7f-315d78eac606”

this is the result of " ls -lha /mnt/dietpi_userdata"

drwxrwxr-x 3 root root 4.0K Oct 26 16:20 .
drwxr-xr-x 7 root root 4.0K Oct 26 15:27 …
drwxrwx— 4 www-data www-data 4.0K Oct 26 16:36 nextcloud_data

Thanks,

Ah yes, FAT32 filesystem on your USB drive, does not support permissions.

The best bet would be to change the USB drive filesystem, to one that supports permissions:

  • Move your user data elsewhere so we can format drive using /DietPi/dietpi/func/dietpi-set_userdata /mnt/usb_1 /mnt/dietpi_userdata
  • Format the drive (usb_1) to EXT4 or BTRFS in dietpi-drive_manager
  • Move user data back to USB drive using /DietPi/dietpi/func/dietpi-set_userdata /mnt/dietpi_userdata /mnt/usb_1
  • Reinstall nextcloud to regenerate data directories and apply permissions by running dietpi-software reinstall 114