accessing nextcloud from web-interface on LAN-connected pc.
folder is visible under āfilesā tab
Issue:
When trying to access the folder, it displays: āyou do not have permission to upload or create files hereā. Same goes for syncing with a desktop/android client.
I need to set permissions somehow. But so far i could not find a solution that works anywhere. Mind you: I can only access the nextcloudpi through the web-interface, not directly. Thus i do not know how to issue commands (which some proposed solutions point to).
you should have access to your webgui of ncp via https://your.local.ip.here:4443 - (it asks for your webgui-user, usually thatās ncp) and your password
then you could use the menu to the left side to use the correct permissions-button.
as well as many others
I have managed to get an SSH connection. Still walking into the same roadblock that i canāt find anywhere how to give which user permission to what folder.
Assuming it has to be done using the chmod command, but because i am an absolute noob i get a little stuck here.
[/edit] a sudo chmod a+w /media/usblabel did not provide read/write/execute permissions from within nextcloud
[/edit 2] Using ls -l, permissions ar currently set as:
drwxrwxrwx for āusblabelā
lrwxrwxrwx for āusb drive --> /media/usblabelā
What it comes down to (assuming this is the issue ā it may not be) is the user that your web server runs as (probably www-data) needs to have read/write/exec permission to the folder.
What is the file system on the flash drive? You can check by typing mount.
Right. butā¦ how? I formatted the drive as Btrfs.
As far as i understood, using chmod a+ā¦ will change permissions for all users, and should do so as well for www-data. What part of that is incorrect? (healp)
I added the external storage using the āexternal storagesā app. It does not have a button or option for write-permissions, but it does have an option for āread-onlyā, which is unchecked.
[/edit] using the chwon command to change ownership to www-data:www-data returns:
chown: changing ownership of ā/media/usblabelā: Operation not permitted [/edit2] sudo chown worked (facepalm), but it did not fis the issue. [/edit3] I tried to change ownership of āUSBdrive -> /media/usb labelā instead of ā/media/usb labelā which returns the following: -bash: /media/usb label: Is a directory
I did that, no game. In both the user and admin accounts, it still dispolays the same message.
the owner is successfully changed for /media/usblabel/folderlabel