Hi all,

I'm running a test setup on CentOS 6.4 with rssh 2.3.3-2

What I try to archive is setting up two scp/sftp account with separated filesystems and chroot environment.  (Let me know there's another way to isolated what two ID can see)
I setup ID ftp1 successfully an login as expected.  
Then clone ftp1 to ftp2. however it is just not working with chroot.  Any suggestion?

/etc/passwd:
ftp1:x:1026:999::/chroot/ftp1/ftp1:/usr/bin/rssh
ftp2:x:1027:999::/chroot/ftp2/ftp2:/usr/bin/rssh

/etc/rssh.conf
logfacility = LOG_USER
allowscp
allowsftp
umask = 022
user=ftp1:022:00011:/chroot/ftp1
user=ftp2:022:00011:/chroot/ftp2

Filesystems:
# pwd
/chroot
# ls -l
drwx------ 10 ftp1   fmguest 4096 Nov  2 05:34 ftp1
drwx------ 11 ftp2   fmguest 4096 Nov  2 05:31 ftp2


For ftp1
==========
# cat /chroot/ftp1/etc/passwd
ftp1:x:1026:999::/ftp1:/usr/bin/rssh

For ftp2
==========
# cat /chroot/ftp2/etc/passwd
ftp2:x:1027:999::/ftp2:/usr/bin/rssh

Test
=========
# sftp ftp1@testhost
Connecting to testhost..
ftp1@testhost's password:
sftp> pwd
Remote working directory: /ftp1
sftp> exit

# sftp ftp2@testhost
Connecting to testhost...
ftp2@testhost's password:
Connection closed