Answer the question
In order to leave comments, you need to log in
How to recover password for lxc container?
I forgot the password from the lxc container raised in proxmox... And I would not want to lose the data that is inside the container :)
Is it possible to reset the password in the container (I suspect that this should not be possible ...) or at least extract data from it (again, I suspect that there should not be such a possibility either).
Answer the question
In order to leave comments, you need to log in
It turns out that both (reset the password in the container) and the other (get access to the files in the container) are possible ...
The first can be done with a bang with the lxc-attach command:
lxc-attach -n 200
, we connect to the desired container (in my case, the container with the name 200) - we are inside the containerpasswd
and enter a new password for the root user of the containerDidn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question