Set permissions on data directories