Working as a developer sometimes requires more knowledge than just that of programming itself. It’s always a good idea to grasp some concepts from other IT fields as well.

One of these concepts is file system permissions, proper management of which is a must when it comes to working with files, e.g., using node.js fs module.

I won’t write what exactly 777 or r/w/x mean, as it’s a very broad topic, but I’ll try to show how we can use those concepts in the node.js world.

Where may it come in handy? Definitely when we want to create new folders or files and be sure that only certain people have access to them. Let’s take a look at signatures of some fs module functions.