I'm following this tutorial and on step 2 they look up a bunch of dependency libraries for bash. (I'm assuming you would need to do this for any command that you wish the chroot jail user that is logging in via ssh to do this) The tutorials dependencies all live in /lib64
, but in mine one lives there and the rest are simlinks to /lib
root@dasHost:/# ldd /bin/bash
linux-vdso.so.1 (0x00007fffcee04000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fddf98f0000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fddf96e0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fddf92e0000)
/lib64/ld-linux-x86-64.so.2 (0x00007fddfa000000)
What do I do with the simlinks, just copy them into the chroot's ./lib directory and simlink them like normal?
It looks like most of these are soft-links.
root@dashost:/# ls -la /lib/x86_64-linux-gnu/libtinfo.so.5
5629499534705713 lrwxrwxrwx 1 root root 15 May 23 2018 /lib/x86_64-linux-gnu/libtinfo.so.5 -> libtinfo.so.5.9
root@dasHost:/# ls -lia /lib/x86_64-linux-gnu/libtinfo.so.5
5629499534705713 lrwxrwxrwx 1 root root 15 May 23 2018 /lib/x86_64-linux-gnu/libtinfo.so.5 -> libtinfo.so.5.9