[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sftp question
On Mon, Dec 11, 2000 at 12:23:26AM +0100, Marco Brigham wrote:
> OK, I get it. The first option is to add sftp-server to /etc/shells, and the
> second is to directly edit the users shell path. Thanks :) I was confused
> indeed...
>
> Now that I have it working, it would be nice to have the user only see its
> own home folder. After looking at 'man chroot' I gave it a try by changing
> line (on /etc/sshd_config):
> Subsystem sftp /usr/libexec/sftp-server
> to
> Subsystem sftp /usr/sbin/chroot $HOME /usr/libexec/sftp-server
>
> Which didn't work...
because
1) chroot is only allowed for root
2) the file usr/libexec/sftp-server does not exist in $HOME
> Was this a stupid idea?
no. perhaps sshd needs a chrootuser option