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