From owner-freebsd-questions@FreeBSD.ORG Fri Oct 21 23:20:45 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0416416A41F for ; Fri, 21 Oct 2005 23:20:45 +0000 (GMT) (envelope-from user@dhp.com) Received: from shell.dhp.com (shell.dhp.com [199.245.105.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8037943D46 for ; Fri, 21 Oct 2005 23:20:44 +0000 (GMT) (envelope-from user@dhp.com) Received: by shell.dhp.com (Postfix, from userid 896) id A85EC3131C; Fri, 21 Oct 2005 19:20:43 -0400 (EDT) Date: Fri, 21 Oct 2005 19:20:43 -0400 (EDT) From: user To: Dan Nelson In-Reply-To: <20051021225713.GD4225@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: How do I chroot rsync like I chroot ftp ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 23:20:45 -0000 On Fri, 21 Oct 2005, Dan Nelson wrote: > In the last episode (Oct 21), user said: > > Generally I chroot ftp users by simply adding their username to > > /etc/ftpchroot. In older days, I used login.conf, etc. > > > > The point is, it's easy to take a specific user and set a chroot that > > applies to what they can see when they use ftp. > > > > What is the equivalent mechanism for rsync ? > > See the rsyncd.conf manpage; it explains how to chroot rsyncd. Yes ... I saw that ... is there anyway to "chroot" rsync over ssh, so I can use public keys and not run the actual rsync server ? I'd like to do the same thing with rdist as well, and am not sure ... how that would even work. I do rdist now over ssh, and it works fine, but ... not sure how to get rdist users to only see their own directory. Is it possible taht what I really want to do is chroot ssh, if I am doing all of my rsync/rdist over ssh ?