Hi there,
I've got a problem with chrooted SFTP. This is the fresh install of OMV (4.1.27-1).
Auth.log says:
Code
Dec 2 16:26:30 malyfin sshd[31753]: Accepted password for bik from x.x.x.x port 7237 ssh2
Dec 2 16:26:30 malyfin sshd[31753]: pam_unix(sshd:session): session opened for user bik by (uid=0)
Dec 2 16:26:30 malyfin sshd[31753]: User child is on pid 31760
Dec 2 16:26:30 malyfin sshd[31760]: fatal: bad ownership or modes for chroot directory component "/"
Dec 2 16:26:30 malyfin sshd[31753]: pam_unix(sshd:session): session closed for user bik
In the sshd_config I've add:
Code
Subsystem sftp internal-sftp
Match User bik
ChrootDirectory /srv/dev-disk-by-label-lustro/esftp/bik
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
The specified folder bik has a 755 permissions ofc.
I've red all the threads about chrooting sftp and most of the problems was with permissions.
Mine is different I think, sshd is trying to chroot this user to / instead to his home dir specyfied in sshd_config.
Please advice 'cause I'm stuck and don't have any clue anymore.
J