Upload backup permission denied

hi all having problems with dietpi install of Filebrowser and permission when uploading
did try a docker and had no problem with upload

uploaded a docker container same folder /dietpi_userdata with no problems with upload

root@DietPi:~# journalctl -u filebrowser
-- Journal begins at Fri 2022-07-22 14:17:55 BST, ends at Fri 2022-07-22 14:45:32 BST. --
Jul 22 14:18:01 DietPi systemd[1]: Started File Browser (DietPi).
Jul 22 14:18:01 DietPi filebrowser[484]: 2022/07/22 14:18:01 No config file used
Jul 22 14:18:01 DietPi filebrowser[484]: 2022/07/22 14:18:01 Listening on [::]:8084
Jul 22 14:26:53 DietPi filebrowser[484]: 2022/07/22 14:26:53 /dietpi_userdata/volumes/data/custom_components/heatmiserneo/const.py: 403 192.168.8.224 mkdir /mnt/dietpi_userdata/volumes/data: permission denied

don’t understand the problem

maybe you can share the permissions you have set for these folder

ls -la /mnt/dietpi_userdata/volumes/data
1 Like

how do i change permission then

drwxrwxr-x 10 dietpi      dietpi 4096 Jul 22 14:36 .
drwxr-xr-x  6 root        root   4096 Jul  3 16:38 ..
drwxrwxr-x  2 dietpi      dietpi 4096 Jul 22 16:41 Music
drwxrwxr-x  3 dietpi      dietpi 4096 Jul 22 16:41 Pictures
drwxrwxr-x  2 dietpi      dietpi 4096 Jul 22 16:41 Video
-rwxrwxr-x  1 filebrowser dietpi 2975 Jul 22 14:08 docker-compose.yml
drwx--x--- 13 root        root   4096 Jul 22 14:45 docker-data
drwxrwxr-x  3 dietpi      dietpi 4096 Jul 22 16:41 downloads
drwxr-xr-x  2 filebrowser root   4096 Jul 22 07:00 filebrowser
drwxr-xr-x  3 root        root   4096 Jul 22 12:48 filebrowser_docker
drwxr-xr-x  5 root        root   4096 Jul 22 14:37 volumes

here is the terminal after pasting ls -la /mnt/dietpi_userdata/

As you can see, folder volumes is owned by root user and root is the only one who could write on it. Not sure what else is located on the directory but you could change everything to be owned by user filebrowser. This way, filebrowser would be able to write on it.

chown filebrowser:filebrowser -R /mnt/dietpi_userdata/volumes/