Fix permissions for device settings