This is likely due to bug 1556302, which is fixed starting in Eoan but will not be changed in Disco or earlier.
On Ubuntu releases pre-Eoan, sudo should be invoked with -H or -i (the -i param does more than -H, but both will change $HOME to the target user's home dir). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1844663 Title: lxc list run via sudo creates root-owned files in the user's home directory To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1844663/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs