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?
/usr/bin/tail
because it's from a standard package. Thetailf
is liketail -f
, it's supposed to keep reading the file as new lines are added to it. As for why you only have/bin/tailf
, I have no clue. Perhaps you have installed a modified Ubuntu or if you are using the system provided by a hosting service, then the sysadmins could have modified the Ubuntu image. – Sergiy Kolodyazhnyy Jan 08 '19 at 11:31Like /home/jail/usr/bin/tail or just /home/jail/bin/tail? and the libraries
– wavrik Jan 08 '19 at 18:40tail
yet ? If yes, make folder/home/jail/usr/bin
and copy it there – Sergiy Kolodyazhnyy Jan 08 '19 at 18:49