Jump to content

【求助】改文件夹权限导致Nextcloud无法访问


Recommended Posts

本来想通过webdav在虚拟群晖备份unraid中Nextcloud的文件,结果提示没权限,就通过Dynamix File Manager把Nextcloud存储的主文件夹设置了other权限可读写,访问Nextcloud首页提示当前权限被其他人访问需要调整回来否则无法访问,就把之前在Dynamix File Manager调整的Other可读写改成了拒绝,最后结果就是Nextcloud首页报错,看了下日志:

 

Quote

{"reqId":"5y6HHZJ8WOF5y","level":3,"time":"2023-06-01T04:38:47+00:00","remoteAddr":"192.168.50.188","user":"--","app":"PHP","method":"GET","url":"/","message":"chmod(): Operation not permitted at /config/www/nextcloud/lib/private/legacy/OC_Util.php#1005","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"22.1.1.2","exception":{"Exception":"Error","Message":"chmod(): Operation not permitted at /config/www/nextcloud/lib/private/legacy/OC_Util.php#1005","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_Util.php","line":1005,"function":"chmod"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_Util.php","line":804,"function":"checkDataDirectoryPermissions","class":"OC_Util","type":"::"},{"file":"/config/www/nextcloud/lib/base.php","line":656,"function":"checkServer","class":"OC_Util","type":"::"},{"file":"/config/www/nextcloud/lib/base.php","line":1083,"function":"init","class":"OC","type":"::"},{"file":"/config/www/nextcloud/index.php","line":34,"args":["/config/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/config/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"5y6HHZJ8WOF5y","level":3,"time":"2023-06-01T04:38:47+00:00","remoteAddr":"192.168.50.188","user":"--","app":"PHP","method":"GET","url":"/","message":"chmod(): Operation not permitted at /config/www/nextcloud/lib/private/Log/File.php#86","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","version":"22.1.1.2"}

 

Dynamix File Manager中只反复设置了几次other的访问权限,其他没设置过:

image.thumb.png.ea7325a07ca4197c20a58b103e637d71.png

 

怀疑是不是设置整个nextcloud的权限时导致权限错乱而无法读取,所以首页就不让访问了。

 

首页报错如下:

image.thumb.png.de65951f28ce177727940baed80f0c85.png

Edited by mingshun
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...