When I run the chroot command an error is given:
failed to run command ‘/bin/bash’: No such file or directory
|
When I run the
|
|||||||||||||
|
|
This error means that there is no If you have |
|||||||||||||||||||||
|
|
You can tell chroot to start another program inside the new root by simply adding it as a parameter:
Note that the path of the command is interpreted inside your new root, so in this example the called program is in fact in |
|||||||||
|
|
I was getting the same error when trying to ssh to a chrooted account on a remote server. In my case, I was missing the following file in the remote lib64 directory. Server is Centos6.9
It was fixed by executing the following:
|
|||||
|