RTNETLINK answers: Operation not permitted in Unprivileged Container

Yep - I threw some debug in, it looks like by default the path is not set even though I have bashrc with a proper PATH variable. I full pathed all my commands and the script to monitor and re-up works just fine.

As a side question - when I attempt to do apt upgrade via an external script, I get the same type of issue with pathing, I’ve poked around /etc/skel but is there a way to ensure path is set when running a command like such:

/usr/bin/lxc-attach -n "$vm" -- /usr/bin/apt -qq update
/usr/bin/lxc-attach -n "$vm" -- /usr/bin/apt -y upgrade

I wind up getting ldd errors on upgrade (I am assuming due to default bath not containing /sbin:/usr/sbin).