I added the below to sshd_config, when i chmod 770
the user folder i get this error? Why? how can i make the folder only readable to the user or group? the owner currently is root and the group is currently that username
fatal: bad ownership or modes for chroot directory
-edit- this is for a user to sftp to store files. Only that user or that group should access that folder. i dont understand why i cant change the permission from 755 to 775 either. Adding write permission gives me an error when i try to log in as the user.
sshd_config:
Match group SomeGroup
ChrootDirectory /mnt/somedir/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp