NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sftp on chroot
On Sun, Sep 19, 2010 at 4:54 AM, Jean-Yves Migeon
<jeanyves.migeon%free.fr@localhost> wrote:
> On 19.09.2010 07:25, Francisco Valladolid wrote:
>> if you change the line: ChrootDirectory /home/%u then, it don't connect
>>
>> What are happening ? it necessary do :
>>
>> % chroot /home
>>
>> Or define a alternative partition (/chroot/home/userx example) for my users
>> ?
>
> /home/%u is not matching %h?
>
> Try using
>
> ChrootDirectory %h
>
> If it does not work, check ssh logs (like /var/log/authlog); the cause
> of this is likely to be in there.
>
Changing ChrootDirectory %h then checking the logs appear:
Sep 20 05:25:57 samuel sshd[29022]: fatal: bad ownership or modes for
chroot directory "/home/xxx"
I think it neccesary, chown root.root /home ?
Regards.
> --
> Jean-Yves Migeon
> jeanyves.migeon%free.fr@localhost
>
--
Francisco Valladolid H.
-- http://bsdguy.net - Jesus Christ follower.
Home |
Main Index |
Thread Index |
Old Index