How to put a network password?

Hi guys,
How to put a network password? I just set up 5 computers as a local area network to share files from the server to the other units. I want to have a privacy regarding those files, I don’t want other users to access the server’s files. Please help me to set a password for my network.
Expecting some help, thank you.
