Restrict access to file