Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies




4:52 pm on Sep 18, 2002 (gmt 0)

10+ Year Member

How can restrain users to their home directories or possibly other directories when using SFTP?
I know that using /etc/ftpchroot I can keep them using regular FTP, but it does't seem to work the same with SFTP.


4:58 pm on Sep 18, 2002 (gmt 0)

WebmasterWorld Senior Member eliteweb is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Have you given them shell accounts also? Do you want them having ssh/telnet access?


9:16 pm on Sep 18, 2002 (gmt 0)

10+ Year Member

Hello EliteWeb,
no I haven't given them shell accounts yet.
And I wouldn't want them to ssh / telnet.


6:19 pm on Sep 19, 2002 (gmt 0)

10+ Year Member

ssh2 has a config option to chroot by user. I have never used it but am looking at it now.

How are you able to only give sftp with out ssh? Is there a seperate server that you start?

When I start sshd I get ssh scp and sftp.


6:25 pm on Sep 20, 2002 (gmt 0)

10+ Year Member

Hello David,
Yes, ssh2 has something that looks like ftpchroot, but I can't figure out how to make it work.

I haven't restricted users to only sftp, but I would like to do that.

Please let me know I you find how to use the chroot by user. I will if I can figure it out :)



6:41 pm on Sep 20, 2002 (gmt 0)

10+ Year Member

The config line to jail them is..

ChRootUsers smith,jones

it goes in the sshd_config file

The problem is Open ssh does not seem to support it. When I try the server will not restart. So it looks like you have to be running SSH2. Let us know if you get something working.

I don't think you can just give them sftp.


Featured Threads

Hot Threads This Week

Hot Threads This Month