homepage Welcome to WebmasterWorld Guest from 54.211.219.178
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
SFTP on OpenBSD
transistor




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

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.
Thanks

 

EliteWeb




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

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

transistor




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

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

David




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

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.

transistor




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

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 :)

Thanks

David




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved