You could have just told claude to write a bunch of sudo commands and then eyeballed them before running them. Giving claude root is taking laziness too far imho.