nextcloud prompts you that you do not have permission to upload or create files here

In order to facilitate the use of sftp to upload files to the nextcloud file storage directory, but when I refreshed and entered the website again, I was prompted that
you do not have permission to upload or create files here.
Execute the command at this time

docker exec -it  你的容器id /bin/bash

Enter the docker environment, find the directory where the user stores the file, change the owner of the file The
directory will be set when it is just installed, generally / var / html / data
after entering the directory, find the folder named after your user name, continue to enter

cd /var/html/data
ls -al
cd user

Recursively change the owner of your own files folder

chown -R www-data files

The problem is solved. In the future, upload the file or try to upload it on the web

Published 44 original articles · won 10 · views 6298

Guess you like

Origin blog.csdn.net/STL_CC/article/details/105606816