From owner-freebsd-questions Mon Feb 3 13:27:12 2003 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 520F037B405 for ; Mon, 3 Feb 2003 13:27:10 -0800 (PST) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1166D43E4A for ; Mon, 3 Feb 2003 13:27:08 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10) id 18fo7K-000C9H-00 for freebsd-questions@freebsd.org; Mon, 03 Feb 2003 13:27:02 -0800 Date: Mon, 3 Feb 2003 13:27:02 -0800 From: Nathan Kinkade To: freebsd-questions@freebsd.org Subject: Re: homedirs access thru FTP Message-ID: <20030203212702.GC87743@sub21-156.member.dsl-only.net> Reply-To: nkinkade@dsl-only.net Mail-Followup-To: freebsd-questions@freebsd.org References: <20030203144853.GA7691@dmon.esiee.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oTHb8nViIGeoXxdp" Content-Disposition: inline In-Reply-To: <20030203144853.GA7691@dmon.esiee.fr> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --oTHb8nViIGeoXxdp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2003 at 03:48:53PM +0100, Frank Bonnet wrote: > Hi >=20 > I have a problem at 4.6.2 with FTP. >=20 > The machine is our FTP server, it handle FTP transferts > for all of our users ( inland and ouland ) >=20 > All home directories are NFS mounted to a Netapp Filer. >=20 > The problem is that SOME users cannot access to their > home directories. >=20 > With the std FreeBSD FTPd daemon they are logged at "/" > and they have to manually go into their homedir. >=20 > With pure-ftpd it refuses to let them loggin in=20 > saying they have no homedir. >=20 > I've identified the cause of problem. >=20 > ONLY users that have 700 chmod their root directory > are concerned. >=20 > It does not happen thru "telnet" "su" or "ssh" accesses. >=20 > Any idea to fix this problem ? >=20 > Thanks Check out the ftpd man page. Specifically, look for the section that refers to the file /etc/ftpchroot. Assuming that you don't want your users to be able to access anything other than the contents of their home directory when logging in via ftp, then place those users names in the /etc/ftpchroot file. When they log in they will be chrooted to the home directory listed for that user the /etc/passwd (or master.passwd) file. Nathan --=20 GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc --oTHb8nViIGeoXxdp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Pt6mWZYS9EJQoEwRAkNwAKCVC2Icy61dV0KuMB2o9uicV1E0yACeO520 mGOZ6t1CmKsh704SEjxtr/c= =z5Gc -----END PGP SIGNATURE----- --oTHb8nViIGeoXxdp-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message