net14 # snap list lxd
Name Version Rev Tracking Publisher Notes
lxd 6.9-a34e1d7 39858 latest/stable canonical✓ -
net14 # lxc config device add foo1 tools disk source=/david-favor path=/david-favor
Device tools added to foo1
net14 # lxc shell foo1
root@foo1:~# # All good here...
root@foo1:~#
logout
net14 # lxc stop foo1
lxdnet14 # lxc copy foo1 foo2
net14 # lxc start foo1 foo2
net14 # lxc shell foo2
su: cannot set groups: Operation not permitted
net14 # # So something failed in the copy...
net14 # lxc exec foo2 bash
root@foo2:~# # This worked, so su breakage is likely...
root@foo2:~# /bin/ls -l $(which su)
-rwsr-xr-x 1 1000000 1000000 55760 Mar 13 11:09 /usr/bin/su
root@foo2:~# # Yes, su breakage, ownership is wrong...
A simple fix of chown root:root on all setuid programs and this seems ugly.
Someone let me know if this is a known issue and there’s a more elegant fix.