[Chrootssh-users] chroot work but not ssh/sftp chroot on Solaris 8
Brought to you by:
punkball
From: Bousquet F. <Fra...@cg...> - 2004-07-20 22:58:15
|
I have set up chroot on Solaris 8 (Ultra 2) I can chroot using the following command : chroot /export/home/test /bin/sh But when I try to log on, I get the following error : bash-2.03$ ssh test@172.18.4.13 test@172.18.4.13's password: /bin/sh: No such file or directory Connection to 172.18.4.13 closed. bash-2.03$ # pwd /export/home/test # ls -lR .: total 8 drwxr-xr-x 2 root other 512 Jul 20 18:24 bin drwxr-xr-x 2 root other 512 Jul 20 17:34 dev drwxr-xr-x 2 root other 512 Jul 20 18:33 etc drwxr-xr-x 5 root other 512 Jul 20 18:31 usr ./bin: total 414 -r-xr-xr-x 1 root other 18652 Jul 20 17:33 cp -r-xr-xr-x 1 root other 12540 Jul 20 18:22 ldd -r-xr-xr-x 1 root other 18844 Jul 20 17:33 ls -r-xr-xr-x 1 root other 18168 Jul 20 17:33 mkdir -r-xr-xr-x 1 root other 18652 Jul 20 17:33 mv -r-xr-xr-x 1 root other 18384 Jul 20 17:33 rm -r-xr-xr-x 1 root other 6360 Jul 20 17:33 rmdir -r-xr-xr-x 1 root other 95316 Jul 20 17:29 sh ./dev: total 0 crw-r--r-- 1 root other 13, 2 Jul 20 17:34 null crw-r--r-- 1 root other 13, 12 Jul 20 17:34 zero ./etc: total 4 -rw-r--r-- 1 root other 339 Jul 20 18:33 group -rw-r--r-- 1 root other 80 Jul 20 18:33 passwd ./usr: total 6 drwxr-xr-x 2 root other 512 Jul 20 18:29 lib drwxr-xr-x 4 root other 512 Jul 20 18:20 local drwxr-xr-x 3 root other 512 Jul 20 18:13 platform ./usr/lib: total 6042 -rwxr-xr-x 1 root other 216740 Jul 20 17:36 ld.so.1 -r-xr-xr-x 1 root other 1516 Jul 20 18:26 lddstub -rwxr-xr-x 1 root other 1146204 Jul 20 17:36 libc.so.1 -rwxr-xr-x 1 root other 24628 Jul 20 18:29 libcmd.so.1 -rwxr-xr-x 1 root other 4924 Jul 20 18:17 libdl.so.1 -rwxr-xr-x 1 root other 166692 Jul 20 18:17 libelf.so.1 -rwxr-xr-x 1 root other 42184 Jul 20 17:37 libgen.so.1 -rwxr-xr-x 1 root other 235068 Jul 20 18:16 libld.so.2 -rwxr-xr-x 1 root other 137092 Jul 20 18:16 liblddbg.so.4 -rwxr-xr-x 1 root other 24968 Jul 20 17:37 libmp.so.2 -rwxr-xr-x 1 root other 898592 Jul 20 17:37 libnsl.so.1 -rwxr-xr-x 1 root other 25700 Jul 20 18:17 librtld.so.1 -rwxr-xr-x 1 root other 26148 Jul 20 18:24 libsecdb.so.1 -rwxr-xr-x 1 root other 70864 Jul 20 17:37 libsocket.so.1 ./usr/local: total 4 drwxr-xr-x 2 root other 512 Jul 20 18:20 lib drwxr-xr-x 2 root other 512 Jul 20 17:39 libexec ./usr/local/lib: total 224 -rwxr-xr-x 1 root other 105969 Jul 20 18:20 libz.so ./usr/local/libexec: total 152 -rwxr-xr-x 1 root other 77520 Jul 20 17:38 sftp-server ./usr/platform: total 2 drwxr-xr-x 3 root other 512 Jul 20 18:13 SUNW,Ultra-2 ./usr/platform/SUNW,Ultra-2: total 2 drwxr-xr-x 2 root other 512 Jul 20 18:13 lib ./usr/platform/SUNW,Ultra-2/lib: total 34 -rwxr-xr-x 1 root other 17096 Jul 20 18:13 libc_psr.so.1 # I have verify every file with ldd after using chroot and they are linking fine. Any idea ? |