FTP+SFTP (chroot)+DirectAdmin

amy66

New member
Joined
Aug 5, 2011
Messages
2
Hi,
I want to run the OpenSSH SFTP server simultaneously with proftpd.
I assigned users to sftp group and added this:
Match Group sftp
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no
to sshd_config.
When /home/user is owned by user:access then i get this standard error:
Aug 5 13:13:37 host sshd[13002]: fatal: bad ownership or modes for chroot directory "/home/user"
(it should be root:root)
but when i change owner to root:root apache gives me 403 error:
[Fri Aug 05 13:14:41 2011] [crit] [client 1.2.3.4] (13)Permission denied: /home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
How to deal with it?
a.
 
Back
Top