[Chrootssh-users] chroot problem
Brought to you by:
punkball
From: Michael W. <mi...@ne...> - 2002-11-07 13:15:25
|
Hello, I am using Red Hat 7.2 and tried with openssh 3.3 and openssh 3.5, but = the results are the same. My problem is when chroot users try to login, = they cannot. Non-chroot users are ok. Also, when i try 'chroot /chroot = /bin/ls' it works ok. This is what i am getting: [root@furry root]# chroot /chroot /bin/sh sh-2.05# ls -l total 20 drwxr-xr-x 2 0 0 4096 Nov 7 02:27 bin drwxr-xr-x 2 0 0 4096 Nov 7 01:15 dev drwxr-xr-x 3 0 0 4096 Nov 7 01:17 home drwxr-xr-x 2 0 0 4096 Nov 7 01:11 lib drwxr-xr-x 2 0 0 4096 Nov 7 01:07 usr (so looks like chroot is ok?) -------------------------------------------------------------------------= ssh root@0=20 root@0's password:=20 Last login: Thu Nov 7 13:44:02 2002 from 192.168.102.1 [root@furry root]#=20 (root could login fine) -------------------------------------------------------------------------= - [root@furry root]# ssh mike@0 mike@0's password:=20 Last login: Thu Nov 7 13:23:30 2002 from 192.168.102.1 (non-chroot users could login) -------------------------------------------------------------------------= -- [root@furry root]# ssh mikechr@0 mikechr@0's password:=20 Connection to 0 closed by remote host. Connection to 0 closed. (chroot users cannot login :-(, his line from passwd: = mikechr:x:504:506::/chroot/./home/mikechr:/bin/sh) I tried also to compile openssh with pam support, but nothing changes. Any help will be appreciated! Thanks, Mike. |