Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2002 22:24:18 +0200
From:      Ruben de Groot <fbsd-q@bzerk.org>
To:        Peter Brezny <pbrezny@purplecat.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: a default ftpchroot entry?
Message-ID:  <20020703222418.A37324@ei.bzerk.org>
In-Reply-To: <NEBBIGLHNDFEJMMIEGOOEEIMFCAA.pbrezny@purplecat.net>; from pbrezny@purplecat.net on Wed, Jul 03, 2002 at 02:41:54PM -0400
References:  <NEBBIGLHNDFEJMMIEGOOEEIMFCAA.pbrezny@purplecat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 03, 2002 at 02:41:54PM -0400, Peter Brezny typed:
> Is there a way to have a wildcard in the /etc/ftpchroot file in combination
> with an 'exculded' list so that every new user is restricted to their
> directory?

I have a slightly modified ftpd that, when started with the option -c,
only allows access to users who are in /etc/ftpchroot.
If you want to try it you can download a patchfile for 4.5-4.6 from:

http://www.xs4all.nl/~rubeng/files/ftpd.patch

To install:
cd /usr/src
patch < /path/to/ftpd.patch
cd libexec/ftpd
make all install

And edit your /etc/inetd.conf to start ftpd with the -c option.

hope this helps.

Ruben de Groot

> 
> Or is there a way that I can automate adduser to place them in the ftpchroot
> file automatically?
> 
> Thanks,
> 
> Peter Brezny
> purplecat.net
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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