Setting up a server with an old pc and secure files

I have an old pc with a dated motherboard which does not permit any major updates. I heard that such systems can be easily used as servers to host shared files. I am currently looking into doing that for work purposes. If I succeed in doing it, I want to restrict the access to certain files. How can I do that?
