Is there any method, with ChrootDirectory and internal-sftp, to automatically cd to a subdir on login?
Ángel González
keisial at gmail.com
Thu May 17 08:29:26 EST 2012
On 16/05/12 23:27, Peter Stuge wrote:
> Ángel González wrote:
>> Peter Stuge wrote:
>>> set the home directory to /files for the relevant users
>> If the user folder is /home/username, just change the
>> ChrootDirectory to /home/%u, and then make their home
>> /home/user1/files
> As I wrote, the home directory should be /files in that case.
>
>
> //Peter
Right. Sorry for the confusion. Their home directory should be /files,
which would map to /home/user1/files, but you set it to /files
More information about the openssh-unix-dev
mailing list