Add basic permissions support to shared directory resource.