Date: Wed, 17 Feb 1999 01:27:07 +0100 From: "Karsten W. Rohrbach" <rohrbach@nacamar.net> To: andy <andy@faust.moldsat.md>, freebsd-isp@FreeBSD.ORG, freebs-questions@FreeBSD.ORG Subject: Re: wu-ftpd VR13 Message-ID: <19990217012707.F24727@nacamar.net> In-Reply-To: <Pine.BSF.3.96.990216113448.11281A-100000@faust.moldsat.md>; from andy on Tue, Feb 16, 1999 at 12:00:51PM %2B0200 References: <Pine.BSF.3.96.990216113448.11281A-100000@faust.moldsat.md>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990217012707.F24727>