SFTP: bad ownership for chroot directory

Hi there¡¡

New to this forum, so first of all hi to everyone and thanks for this great project.
Using Hestia 1.4.7 with Ubuntu 20.04
I’m having a problem accessing with an FTP client through SFTP.
I’ve been reading another topics, and it seems when you create a new user, by default it’s “nologin” and it has access through SFTP to its local folder.
But when I try to access, I get no access and I get this in /var/log/auth.log

sshd[107616]: pam_unix(sshd:session): session opened for user user1_ftp by (uid=0)
systemd-logind[558]: New session 109 of user user1.
systemd: pam_unix(systemd-user:session): session opened for user user1 by (uid=0)
sshd[107705]: fatal: bad ownership or modes for chroot directory component "/home/user1/web/"
sshd[107616]: pam_unix(sshd:session): session closed for user user1_ftp
systemd-logind[558]: Session 109 logged out. Waiting for processes to exit.
semicom systemd-logind[558]: Removed session 109.

I’ve been searching the forum with some similar cases, but I haven’t found the solution.

Thanks in advance

So… no one with the same problem?

Try using v-rebuild-user it should reset the permissions

FTP access via user is currently not availble use sftp instead

Hi eris:

Thanks for the answer.
Now I realise the problem. I was trying to log with the FTP user created for the site, not with the “main” user.