0

I was under the impression that for chrootdirectory to work:

  • The chroot directory and all of its parents must not have group or world write capabilities (ie chmod 755)
  • The chroot directory and all of its parents must be owned by root.

However on my server this is not the case. When I log in by ftp (through proftpd) all users are jailed in their respect user directory and is unable to go outside of it, the parent directory as seen her is not owned by root.

Dir structure of parent directory:

drwx--x--x  14 anseekers     anseekers      4096 Apr 26  2018 anseekers/

How was this possible?

I would like to setup the same for sftp but always get an error:

sftp bad ownership or modes for chroot directory

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.