I'm really a noob on Ubuntu, I'm facing a simple problem that I don't find anywhere, I follow this tutorial to make an ssh jail directory
https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/
I know that the user will not have some commands but I want to enable some to the user, in this tutorial have these commands to enable this :
# cp -v /bin/ls /home/test/bin/
# cp -v /bin/date /home/test/bin/
# cp -v /bin/mkdir /home/test/bin/
and there is too find the libraries for this commands :
ldd /bin/ls
# cp -v /lib64/{libselinux.so.1,libcap.so.2,libacl.so.1,libc.so.6,libpcre.so.1,libdl.so.2,ld-linux-x86-64.so.2,libattr.so.1,libpthread.so.0} /home/test/lib64/
I managed to make this commands work successfully but the "tail" command I try everything but nothing is working.
I use the ldd /bin/tailf ( tailf is the command? )
it displays some libraries I use the cp command and is not working, what I'm doing wrong?