To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: Lock down CYGWIN SSH User to single directory.
Date:  Thu, 17 Nov 2005 13:30:45 -0600
Lines: 26
Message-ID: <dlilp6$ekj$1@sea.gmane.org>
References:  <loom.20051117T181458-376@post.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <loom.20051117T181458-376@post.gmane.org>
OpenPGP: url=ldap://keyserver.pgp.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

JMCColorado wrote:

> Is there any way to only allow a user SSH access to a single directory tr=
ee?
> I need to lock the user out of EVERYTHING else.

You need something like this:

  http://olivier.sessink.nl/jailkit/index.html#intro

It hasn't been tested under the Cygwin environment and it's not trivial to =
install.

Another option is to use a patched sshd that suports 'ChrootGroups' or
'ChrootUsers', there is:

  http://chrootssh.sourceforge.net/

Since chroot is part of the Cygwin's coreutils package, it may work.

I haven't used any of these, nor do I need it (so far), but it would be
interesting to hear if anyone had any success with this.

HTH
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

