Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 12:58:41 +0100 (CET)
From:      Andrew Prewett <andrew@kronos.HomeUnix.com>
To:        FreeBSD Mailing list <freebsd-questions@FreeBSD.ORG>
Subject:   Re: /etc/ftpchroot
Message-ID:  <20030102123729.E12613@slave.east.ath.cx>
In-Reply-To: <20030102133627.B87472-100000@gemini.fixx.co.za>
References:  <20030102133627.B87472-100000@gemini.fixx.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Today Wayne Swart wrote:

> lo everyone
>
> is there a wildcdard type you can specify for /etc/ftpchroot ?

joe*, doe[0-9], etc. won't work

> this is on bsd 4.7 using ftpd

This is from ftpd(8):
...
5.   If the user name appears in the file /etc/ftpchroot, or the
     user is a member of a group with a group entry in this file,
     i.e. one prefixed with `@', the session's root will be changed
     to the user's login directory by chroot(2) as for an
     ``anonymous'' or ``ftp'' account (see next item).  This facil-
     ity may also be triggered by enabling the boolean "ftp-chroot"
     capability in login.conf(5).  However, the user must still
     supply a password.  This feature is intended as a compromise
     between a fully anonymous account and a fully privileged
     account.  The account should also be set up as for an anony-
     mous account.
...

 Create a new group, add users to the group (see pw(8) for details),
add `@groupname' to /etc/ftpchroot.

	-andrew


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?20030102123729.E12613>