From owner-freebsd-isp Tue Feb 16 16:27:26 1999 Delivered-To: freebsd-isp@freebsd.org Received: from mail.nacamar.de (mail.nacamar.de [194.162.162.200]) by hub.freebsd.org (Postfix) with ESMTP id 1458E10EBD; Tue, 16 Feb 1999 16:27:18 -0800 (PST) (envelope-from rohrbach@mail.nacamar.de) Received: (from rohrbach@localhost) by mail.nacamar.de (8.8.7/8.8.8MB-19980212) id BAA25293; Wed, 17 Feb 1999 01:27:07 +0100 (CET) Message-ID: <19990217012707.F24727@nacamar.net> Date: Wed, 17 Feb 1999 01:27:07 +0100 From: "Karsten W. Rohrbach" To: andy , freebsd-isp@FreeBSD.ORG, freebs-questions@FreeBSD.ORG Subject: Re: wu-ftpd VR13 Reply-To: rohrbach@nacamar.net Mail-Followup-To: andy , freebsd-isp@FreeBSD.ORG, freebs-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from andy on Tue, Feb 16, 1999 at 12:00:51PM +0200 X-Arbitrary-Number-Of-The-Day: 42 X-Sender: rohrbach@nacamar.net X-Organisation: Nacamar Data Communications GmbH X-Address: Robert-Bosch-Str. 32, 63303 Dreieich, Germany X-Phone: vox: +49 6103 993 870 fax: +49 6103 993 199 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org the freebsd ftpd does this (/usr/libexec/ftpd) using /etc/ftpchroot. wu-ftpd has a feature using guest classes identifying uids (i think it are only uids or are it also gids?) above a certain limit to act as chroot flag. the path to chroot() to is taken from /etc/passwd with some serious magic: you can create some tree like /data/user1/webpages and have the line user1:*cryptedpw*:10001:10000:user 1:/data/user1/./webpages:/usr/bin/false in /etc/passwd when the user logs in, wuftpd checks the password, the validity of the shell (it has to exist and be in /etc/shells) and changes intothe paht before the /./ then it chdir()s to the path behind the /./ so the user is taken into for example his webpages directory "/webpages". take a look at the manpage for wu-ftpd for the config commands and class definitions. have fun /k andy (andy@faust.moldsat.md) @ Tue, Feb 16, 1999 at 12:00:51PM +0200: > > hi there! > > how could I get my subj. to chroot users into their home dir? > > I've created /etc/ftpchroot > the content being like > > @users > joe > foo > > > but it doesn't chroot them :-( > > > catchya later, > andy > Kishington is real. The rest is done with mirrors. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message -- "The path of excess leads to the tower of wisdom." -- W. Blake http://www.nacamar.de - http://www.nacamar.net - http://www.webmonster.de http://www.apache.de - http://www.quakeforum.de - finger rohrbach@nacamar.net PGP Key fingerprint = F9 A0 DF 91 74 07 6A 1C 5F 0B E0 6B 4D CD 8C 44 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message