I have migrated from a windows to a Linux server and now don't think my permissions are correct. I created a tar.gz on Windows of my 'data' dir and unzipped it over the top of an existing new install:
sudo tar xvzf /share/data.tar.gz -C /var/www/dokuwiki-2018-04-22a/
I then did:
sudo chown -R www-data:www-data data
I can create and edit pages, as well as see all my old pages, but not sure what the directories and files permissions should be. I have read https://www.dokuwiki.org/install:permissions
but don't fully understand it. Different forum posts and how-to guides all seem to set different permissions!
I can use chmod and chown but am not a Linux expert, and some of the permissions concepts are lost on me.
Should the 'data' dir and all its contents be owned by the www-data user and only that user should have read, write, and execute? Do users of the site, i.e. users on the web need to have read access? or should it be -rwx------ for files and drwx------ for directories ?
Do I need to set dmod and fmod to the same permissions?