Found this and thought it would be a better way to handle sudo than handing out the root password: https://www.vinnie.work/blog/2023-01-28-sudo-with-ssh-keys