For reference, here’s a working solution: linux - How to get the env vars I want with the superuser command? - Super User