Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have limited sftp users to their home directory using this answer

It all seems to be working fine. I only have 1 query though.

When I ever issue an 'ls' command, there appears to be an additional cygwindrive directory. For example I might get a result like this:

sftp> ls
cygdrive  five      six

Can anyone explain why I might get this?



share|improve this question

/cygdrive is the standard prefix where Cygwin puts Windows directories, e.g. /cygdrive/C. I hadn't seen this before, but it seems that even in a chroot environment, Cygwin wants it to be there. You can see /cygdrive in /etc/fstab.

This behavior seems to me like a bug in chroot. I suggest reporting it to the Cygwin mailing list, Be sure to follow the problem reporting guidelines.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.