Can You tell me how to do it wright because I’m afraid I will broke my nextcloud?
login as root user
chmod dietpi:dietpi /mnt/Toshiba/
chmod dietpi:dietpi /mnt/Toshiba/dietpi_userdata/
I make sudo su from ssh when dietpi user and give command:
root@DietPi:/# chmod dietpi:dietpi /mnt/Toshiba/
chmod: błędne uprawnienia „dietpi:dietpi”
Napisz „chmod --help” dla uzyskania informacji.
It means wrong permissions.
sorry my fold. should be chown instead of chmod
chown dietpi:dietpi /mnt/Toshiba/
chown dietpi:dietpi /mnt/Toshiba/dietpi_userdata/
It’s progress because I can make folder and delete folder downloads in dietpi_userdata but when I enter folder downloads or movies I cannot delete anything. Can You show me command to affect all subfolders from dietpi_userdata?
well I would not do all folder at once. because folder nextcloud_data need to stay with user www-data. Same for folder mysql. (btw mysql should be owned by mysql user and group)
pls go inside dietpi_userdata and do the following
chown -R dietpi:dietpi <DIR>
pls replace with every folder you need to access
I try that but don’t work. Do I have to reboot Dietpi system?
chown -R dietpi:dietpi /mnt/Toshiba/dietpi_userdata/downloads/
Edit. OK I can delete files now in Android with Raspicontrol App so I think it should work now. Thank You for Your time and help.
what is not working?
It’s OK now. I have access from smartphone, laptop and OSMC. Thanks for help.