Restrict folder sharing over cygwin sshd

Posted by mtanish on Stack Overflow See other posts from Stack Overflow or by mtanish
Published on 2010-03-17T18:54:02Z Indexed on 2010/03/17 19:01 UTC
Read the original article Hit count: 324

Filed under:

I recently installed a SSH server on my Windows 7 PC and created a separate user account for this. When i logged in using SSH, i could access all the windows directories.

/cygdrive/c
/cygdrive/d
/cygdrive/e

How do i prevent this user from accessing all the win directories other than its home directory under cygwin /home/chuck/ ?

Preferably i do not want the user to even view /cygdrive when the user types "mount".
Is there a easy way to do this?
I want to later allow remote users to log on to this machine and avoid messing up other things.
I know i can setup a separate machine but this is a plan for later.

© Stack Overflow or respective owner

Related posts about cygwin