Serving web files from NAS

I’m setting up a web server on my computer but I want all the files for the website to be stored on my network drive. My plan is to run the server from a laptop and then when I go somewhere with my laptop I’ll make my desktop the server. I’m having trouble with file permissions even though I’m keeping the files in a public share. I know I can use SSH to change permissions, but will that make my site less secure? What if I have some files that for security purposes must be accessible only to the server?