I mounted an external drive and mounted to /mnt/external
then ran
sudo chown -R www-data:www-data /mnt/external
sudo chmod -R 0750 /mnt/external
switched to user www-data and was able to create a folder in the bash environment
then in Nextcloud I added the folder
You can try to find in the logs, what kind of error you get.
For the permission, you can check if the user www-data really has access: sudo -u www-data ls /mnt/external
(just to be sure, and that there is no restriction on the parent folders)
If that still is a problem, php might be restricted to certain folders (outside of open_basedir), this should show up in the logs.
Removable mediamust be mounted to either /media or /mnt as root with root permissions and connected to Snap!
The interface providing the ability to access removable media is not automatically connected upon install, so if you’d like to use external storage (or otherwise use a device in /media or /mnt for data), you need to give the snap permission to access removable media by connecting that interface:
yes, none of that worked. I will either switch to a sftp to the localhost or change the data folder. My idea was to have a vHDD for each user but looks it is not possible because if the folder exist it can’t create the user and if you copy the files to another location it breaks the files. Thank you!