Koozali.org: home of the SME Server

SFTP and chroot, HowTo needed

d_gerst

SFTP and chroot, HowTo needed
« on: February 12, 2006, 04:57:19 PM »
Hello,

I use a SME 6.5 and I want to give some users sftp access from internet(this works fine with dungog contrib), not ftps, . But I want to restrict a user to specified directory, so he or she could only access this directory and subfolders of the directory. I tried to use examples of rssh.conf, but it won't work.

Could someone give me a clue or a howto for chroot for sftp?

Best regards,
Daniel

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SFTP and chroot, HowTo needed
« Reply #1 on: February 12, 2006, 05:24:21 PM »
Quote from: "d_gerst"

Could someone give me a clue or a howto for chroot for sftp?


It's probably unwise to do that. chrooting a user to a directory which they control (can modify) will result in reduced security (including possible root exploit) rather than increased security.