I’m new to this forum and work on debian stretch.
In order to do some tests I do not succeed to set the root passwd in a script.
This does not work :
lxc-atttach -n name – echo root:pwd | chpasswd
These work but I have to enter the passwd
lxc-attach -n name – passwd
lxc-attach -n name
echo root:pwd | chpasswd