Nextcloud Warnung: "Some app directories are owned by a different user than the web server one."

Hallo, ich bin gerade dabei die Warnungen meiner Nextcloud Installation abzuarbeiten und weiß mir bei folgender Warnung nicht zu helfen:

Some app directories are owned by a different user than the web server one. This may be the case if apps have been installed manually. Check the permissions of the following app directories:

    /var/www/html/nextcloud/apps/accessibility
    /var/www/html/nextcloud/apps/activity
    /var/www/html/nextcloud/apps/admin_audit
    /var/www/html/nextcloud/apps/cloud_federation_api
    /var/www/html/nextcloud/apps/comments
    /var/www/html/nextcloud/apps/dav
    /var/www/html/nextcloud/apps/encryption
    /var/www/html/nextcloud/apps/federatedfilesharing
    /var/www/html/nextcloud/apps/federation
    /var/www/html/nextcloud/apps/files
    /var/www/html/nextcloud/apps/files_external
    /var/www/html/nextcloud/apps/files_pdfviewer
    /var/www/html/nextcloud/apps/files_rightclick
    /var/www/html/nextcloud/apps/files_sharing
    /var/www/html/nextcloud/apps/files_trashbin
    /var/www/html/nextcloud/apps/files_versions
    /var/www/html/nextcloud/apps/files_videoplayer
    /var/www/html/nextcloud/apps/firstrunwizard
    /var/www/html/nextcloud/apps/gallery
    /var/www/html/nextcloud/apps/logreader
    /var/www/html/nextcloud/apps/lookup_server_connector
    /var/www/html/nextcloud/apps/nextcloud_announcements
    /var/www/html/nextcloud/apps/notifications
    /var/www/html/nextcloud/apps/oauth2
    /var/www/html/nextcloud/apps/password_policy
    /var/www/html/nextcloud/apps/privacy
    /var/www/html/nextcloud/apps/provisioning_api
    /var/www/html/nextcloud/apps/recommendations
    /var/www/html/nextcloud/apps/serverinfo
    /var/www/html/nextcloud/apps/sharebymail
    /var/www/html/nextcloud/apps/support
    /var/www/html/nextcloud/apps/survey_client
    /var/www/html/nextcloud/apps/systemtags
    /var/www/html/nextcloud/apps/text
    /var/www/html/nextcloud/apps/theming
    /var/www/html/nextcloud/apps/twofactor_backupcodes
    /var/www/html/nextcloud/apps/updatenotification
    /var/www/html/nextcloud/apps/user_ldap
    /var/www/html/nextcloud/apps/viewer
    /var/www/html/nextcloud/apps/workflowengine

Mit “ls -al /var/www/html/nextcloud/apps/accessibility” erhalte ich beispielsweise folgende Ausgabe:

total 48
drwxr-xr-x 11 nobody   nogroup  4096 Nov  7 12:08 .
drwxr-xr-x 43 www-data www-data 4096 Nov 27 20:51 ..
drwxr-xr-x  2 nobody   nogroup  4096 Nov  7 12:08 appinfo
-rw-r--r--  1 nobody   nogroup   146 Nov  7 12:04 .babelrc.js
drwxr-xr-x  3 nobody   nogroup  4096 Nov  7 12:04 composer
drwxr-xr-x  2 nobody   nogroup  4096 Nov  7 12:04 css
drwxr-xr-x  2 nobody   nogroup  4096 Nov  7 12:04 fonts
drwxr-xr-x  2 nobody   nogroup  4096 Nov  7 12:04 img
drwxr-xr-x  2 nobody   nogroup  4096 Nov  7 12:04 js
drwxr-xr-x  2 nobody   nogroup  4096 Nov  7 12:08 l10n
drwxr-xr-x  5 nobody   nogroup  4096 Nov  7 12:04 lib
drwxr-xr-x  2 nobody   nogroup  4096 Nov  7 12:04 templates

Gibt es eine Möglichkeit diese Warnung elegant in Ordnung zu bringen? Danke!

joar… mann mann…

du solltest erstmal rauskriegen, wie dein webuser heißt. oft ist das www-data in der gruppe www-data (aber erst mal selbst rausfinden, das ist NICHT immer der fall)

und dann änderst du den besitzer der jeweiligen ordner
am besten mit

sudo chown -R "www-data:www-data" /pfad/ordner

sollte so gehen

Obwohl hier den Beschrieb für Version 9(!) ist, habe ich nach dem Upgrade auf 17.0.1 folgendes Script benutzt, um die Permissions zu korrigieren.

https://docs.nextcloud.com/server/9/admin_manual/installation/installation_wizard.html#strong-perms-label

Vor einem Upgrade müsste man dann zuerst die Permissions wieder lockern, damit der Upgrade durchläuft:

https://docs.nextcloud.com/server/9/admin_manual/maintenance/update.html#set-updating-permissions-label

Mit “sudo chown -R “www-data:www-data” /var/www/html/nextcloud/apps/accessibility” habe ich schonmal eine Warnung weniger :wink:

versuch das chown mal mit diesem ordner… und -R (rekursiv, also für alle unterordner) - vielleicht gehts so ganz schnell?

Perfekt, danke!

1 Like