Set proper permissions.