You can use file permissions and access control lists (ACLs) to restrict user access to directories. The chmod and setfacl commands are commonly used for this purpose.