From owner-freebsd-questions@FreeBSD.ORG Fri Jun 3 20:02:13 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 1C3AB16A41C for ; Fri, 3 Jun 2005 20:02:13 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF50E43D1D for ; Fri, 3 Jun 2005 20:02:07 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 34459C989F7; Fri, 3 Jun 2005 16:02:06 -0400 (EDT) X-Sasl-enc: GWw0lK64G8EuyKpG9GlAfPnbeMWhF+34mad7epInS+Uh 1117828926 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id BAC345F; Fri, 3 Jun 2005 16:02:05 -0400 (EDT) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1DeIMl-0003IZ-3E; Fri, 03 Jun 2005 14:02:03 -0600 Date: Fri, 3 Jun 2005 14:02:03 -0600 From: Nathan Kinkade To: Denny Jodeit Message-ID: <20050603200203.GB21127@gentoo-npk.bmp.ub> Mail-Followup-To: Denny Jodeit , freebsd-questions@freebsd.org References: <002301c56874$23078e80$59830acf@dennylaptop2> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sh1CKz+Jfn6GrauW" Content-Disposition: inline In-Reply-To: <002301c56874$23078e80$59830acf@dennylaptop2> X-PGP-Fingerprint: 3FDF A406 B149 3959 A8CB C5A9 3B46 4812 D852 7E49 User-Agent: Mutt/1.5.6i Sender: Cc: freebsd-questions@freebsd.org Subject: Re: ftpchroot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 20:02:13 -0000 --sh1CKz+Jfn6GrauW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 03, 2005 at 03:40:46PM -0400, Denny Jodeit wrote: > Hello, >=20 > I'm trying to restrict an ftp user to a particular directory. I've > written an ftpchroot file, as follows: >=20 > Username /var/spool/ftp/ ./Username/photos >=20 >=20 > After I write the file and restart inetd, I am not able to login to ftp > with this user account at all. > I have RTFM and evidently don't get it... >=20 > Thanks in advance for any and all suggestions. >=20 > Denny Is that a space character in the path above? If so, I don't think it should be there. Have you tried just using the line: username /var/spool/ftp =2E.. to see if the chroot works at all? If so, then try adding user specific subdirs of the chroot (without the space before the ``.'') Nathan --sh1CKz+Jfn6GrauW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCoLc7O0ZIEthSfkkRAnZeAJ4g1L4vdWDQE4i6GAz6yM8giuF1UACeOX5C q4jfdwjHX+Ty9yBsh4AMero= =W4Ez -----END PGP SIGNATURE----- --sh1CKz+Jfn6GrauW--