[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ssh + chroot



On Thu, 23 Aug 2001 13:26:45 +0200
Michael Wood <mwood@its.uct.ac.za> wrote:


> I haven't been following the thread.  Do you get the message as
> soon as you run sshd or just when someone tries to log in?
> 

I get the message when I try to do an scp from local to the chrooted host(as it must run scp in the chroot). But no problem with ssh or sftp.

> 
> If you get the error when trying to start sshd, you can try
> something like this:
> 
> strace sshd
> or
> strace -eopen sshd
> or
> strace sshd 2>&1 | less
> etc.
> 
> That might give you more of an idea of what sshd can't find.


Thanks!!! It works, strace said me that I need to put /lib/libnss_files.so.2 and /lib/libnss_compat.so.2




Thanks to you Mickael and Nick and ... strace.

So now here is the content of my chroot to make ssh,scp,sftp and some other stuff to work.

If someone shows something he thinks it's a very bad idea to have it in a chroot, please let me know it.

	Manu.

./bin
./bin/bash
./bin/cat
./bin/chmod
./bin/cp
./bin/date
./bin/df
./bin/echo
./bin/grep
./bin/gunzip
./bin/gzip
./bin/hostname
./bin/ln
./bin/ls
./bin/mkdir
./bin/mv
./bin/rm
./bin/rmdir
./bin/tar
./bin/touch
./bin/uncompress
./bin/gdb
./lib
./lib/libncurses.so.5
./lib/libdl.so.2
./lib/libc.so.6
./lib/ld-linux.so.2
./lib/libpam.so.0
./lib/libwrap.so.0
./lib/libnsl.so.1
./lib/libutil.so.1
./lib/libcrypt.so.1
./lib/libncurses.so.4
./lib/libm.so.6
./lib/libnss_files.so.2
./lib/libnss_compat.so.2
./usr
./usr/bin
./usr/bin/bzip2
./usr/bin/emacs
./usr/bin/zip
./usr/bin/unzip
./usr/bin/zile
./usr/bin/scp
./usr/bin/psql
./usr/lib
./usr/lib/libbz2.so.0
./usr/lib/sftp-server
./usr/lib/libz.so.1
./usr/lib/libcrypto.so.0.9.5
./usr/lib/menu
./usr/lib/menu/zile
./usr/lib/postgresql
./usr/lib/postgresql/bin
./usr/lib/postgresql/bin/psql
./usr/lib/libpq.so.2
./usr/lib/libpq.so.2.0
./usr/lib/libpq.so.2.1
./usr/share
./usr/share/zile
./usr/share/zile/HELP
./usr/share/zile/FAQ
./usr/share/zile/LATEST_VERSION
./usr/share/zile/HELPWIN
./usr/share/zile/TUTORIAL
./usr/share/zile/AUTODOC
./etc
./etc/nsswitch.conf
./etc/terminfo
./etc/terminfo/a
./etc/terminfo/a/ansi
./etc/terminfo/d
./etc/terminfo/d/dumb
./etc/terminfo/l
./etc/terminfo/l/linux
./etc/terminfo/r
./etc/terminfo/r/rxvt-m
./etc/terminfo/r/rxvt
./etc/terminfo/s
./etc/terminfo/s/screen
./etc/terminfo/s/screen-w
./etc/terminfo/s/sun
./etc/terminfo/v
./etc/terminfo/v/vt100
./etc/terminfo/v/vt102
./etc/terminfo/v/vt220
./etc/terminfo/v/vt52
./etc/terminfo/x
./etc/terminfo/x/xterm
./etc/terminfo/x/xterm-xfree86
./etc/terminfo/x/xterm-debian
./etc/terminfo/x/xterm-basic
./etc/terminfo/x/xterm-mono
./etc/terminfo/x/xterm-r5
./etc/terminfo/x/xterm-color
./etc/terminfo/x/xterm-r6
./etc/terminfo/x/xterm-vt220
./etc/terminfo/m
./etc/terminfo/m/mach-bold
./etc/terminfo/m/mach
./etc/terminfo/m/mach-color
./etc/terminfo/p
./etc/terminfo/p/pcansi
./etc/passwd




-- 
Easter-eggs                                Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris   -   France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37    -     Fax: +33 (0) 1 41 35 00 76
mailto:elacour@easter-eggs.com   -    http://www.easter-eggs.com

Attachment: pgpigIMF5G8Qz.pgp
Description: PGP signature


Reply to: