Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2005 14:02:03 -0600
From:      Nathan Kinkade <nkinkade@ub.edu.bz>
To:        Denny Jodeit <tech@flare.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ftpchroot
Message-ID:  <20050603200203.GB21127@gentoo-npk.bmp.ub>
In-Reply-To: <002301c56874$23078e80$59830acf@dennylaptop2>
References:  <002301c56874$23078e80$59830acf@dennylaptop2>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050603200203.GB21127>