Set file permissions correctly

Hi there,

I’ve moved to a new server and now I’m unsure whether file permissions are still set correctly.

I’ve found different information on the community on how to set them and some people even said it’s not important anymore to take care of file permissions at all when it comes to Nextcloud which confused me. That’s why I’d like to ask for a confirmation on this.

Thank you very much.

Hello,
as it is said here: Upgrade manually — Nextcloud latest Administration Manual latest documentation
Ownership ans permissions:

chown -R www-data:www-data nextcloud
find nextcloud/ -type d -exec chmod 750 {} \;
find nextcloud/ -type f -exec chmod 640 {} \;

And definitely YES, right ownership and permissions are really important. :slight_smile:

2 Likes

Thanks! I moved the data directory outside the nextcloud folder but’ll make sure to update these anyways.