Web lists-archives.com

Re: chroot jail for user with rssh




basti <mailinglist@xxxxxxxxxxxxxxxx> writes:
>
> Files inside chroot:
>
> /home/user# find ./
> ./
> ./bin
> ./bin/ls
> ./bin/date
> ./bin/bash
> ./.ssh
> ./.ssh/authorized_keys
> ./lib
> ./lib/x86_64-linux-gnu
> ./lib/x86_64-linux-gnu/libattr.so.1
> ./lib/x86_64-linux-gnu/libncurses.so.5
> ./lib/x86_64-linux-gnu/librt.so.1
> ./lib/x86_64-linux-gnu/libbsd.so.0
> ./lib/x86_64-linux-gnu/libpthread.so.0
> ./lib/x86_64-linux-gnu/libacl.so.1
> ./lib/x86_64-linux-gnu/libdl.so.2
> ./lib/x86_64-linux-gnu/libpopt.so.0
> ./lib/x86_64-linux-gnu/libpcre.so.3
> ./lib/x86_64-linux-gnu/libselinux.so.1
> ./lib/x86_64-linux-gnu/libtinfo.so.5
> ./lib/x86_64-linux-gnu/libc.so.6
> ./etc
> ./etc/group
> ./etc/rssh.conf
> ./etc/passwd
> ./foo
> ./usr
> ./usr/bin
> ./usr/bin/rssh
> ./usr/bin/sftp
> ./usr/bin/rsync
> ./usr/bin/scp
> ./usr/lib
> ./usr/lib/x86_64-linux-gnu
> ./usr/lib/x86_64-linux-gnu/libedit.so.2
> ./dev
> ./dev/random
> ./dev/zero
> ./dev/null
> ./dev/tty
> ./lib64
> ./lib64/ld-linux-x86-64.so.2

Did you use Russ' supplied script
/usr/share/doc/rss/examples/mkchroot.sh to create that environment?

My contents after that script look quite different to your presented
files.

Did you act on the logging notice after using the script, so that the
syslogd listens to the ./dev/log in the chroot?

Peter