on a conventional (apt-get install lxd) system everything relevant for lxd in to be found in /var/lib/lxd I think.
what is the equivalent location for this when lxd runs from a snap package? I can’t really locate it in the various snap locations (and neither in /var/lib)
Tried to find it by locate [container-name], but that does not return any hits
No particular reason. I’ve changed our packaging branch to be 0755 moving forward (it won’t change permissions on existing installs though).
We have a whole bunch of paths under it that are 0711 for good reasons (don’t want to allow non-root to run outdated setuid binaries from a container’s filesystem).
Note that ‘lsof -U | grep lxd’ is one way to find all of the unix sockets over which local lxd daemons are listening. In the snap case, you can then talk to that daemon using: