How do I set up chroot sftp account

Hi,

I am tryig to set up a secure way for users to sftp to my server.

I found this link ...

http://www.c2group.net/howtos/chroot.html

... but it seems to leave out one import point.

When I test out the account like the document describes the user is not "jailed".

What I think was left out is how do I get user to execute ...

chroot /home/jail/bad_bob /bin/sh

... since chroot must be run by root?

Is the link I posted out of date?

Is there some other way to accomplish what I any trying to do?

I want to have users have access to only there $HOME directory and not

be able to execute anything really. They just need to be able to sftp files

to a directory.

Oh BTW ...

# uname -a

SunOS zeus 5.8 Generic_108528-19 sun4u sparc SUNW,Sun-Blade-100

Thanks

[867 byte] By [twee2003] at [2007-11-25 23:23:56]
# 1

I'm also searching for a better explanation of using chroot with ftp virtual host, looks like you have to experiment yourself to find out the answer, I haven't got time to actually test out the chroot jail with wu-ftpd, most people seemed are using proftpd (can be found in sunfreeware)or ncftpd (need to pay to use, trial only for 30 days) has chroot build in, still trying to figure out.

cmk168 at 2007-7-5 18:11:04 > top of Java-index,General,Talk to the Sysop...