NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sftp on chroot
On 21.09.2010 00:34, Francisco Valladolid wrote:
> Hi.
>
> I have the next and work for me now.
>
> Subsystem sftp internal-sftp
> Match Group sftponly
> ChrootDirectory /home/%u
> X11Forwarding no
> AllowTcpForwarding no
> ForceCommand internal-sftp
>
> % sudo chown root.root /home/hacienda
> % sudo mkdir /home/hacienda/public_html
> % sudo chmod -R 750 /home/hacienda/public_html
> % sudo chown hacienda:www /home/hacienda/public_html
>
> it connect fine via sftp without problems, but Apache have problems
> reading the index.html
> inside public_html subdirectory.
>
> I have problems with permisions, whenever, I don't know if it possible
> that apache read it.
If the rights are properly set up for the complete path down to
/home/hacienda/public_html, there is no real reason for it.
What are the rights for each component down to index.html?
--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost
Home |
Main Index |
Thread Index |
Old Index