From owner-freebsd-questions Sun Oct 3 22:40:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scotty.masternet.it (scotty.masternet.it [194.184.65.2]) by hub.freebsd.org (Postfix) with ESMTP id 41AB914E3A for ; Sun, 3 Oct 1999 22:40:23 -0700 (PDT) (envelope-from gmarco@scotty.masternet.it) Received: from suzy (modem11.masternet.it [194.184.65.21]) by scotty.masternet.it (8.9.3/8.9.3) with ESMTP id HAA87529; Mon, 4 Oct 1999 07:40:15 +0200 (CEST) (envelope-from gmarco@scotty.masternet.it) Message-Id: <4.2.0.58.19991004074313.00a22590@194.184.65.4> X-Sender: gmarco@scotty.masternet.it X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 04 Oct 1999 07:44:40 +0200 To: Ryan Thompson , freebsd-questions@FreeBSD.ORG From: Gianmarco Giovannelli Subject: Re: ~/bin, ~/etc for chroot'd users In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 03/10/99, Ryan Thompson wrote: >Hi everybody; > >I'm just wondering what the best practice is for the content in the bin/ >and etc/ directories in home directories of users for which chroot is run. >(Both through ftpd, and just regular login shells). Users come and go on >my system with some frequency, and I have a fair number of them. What is >the best way to maintain the content in the etc/ directories of users for >which chroot is run? (In particular, the pwd.db and groups files, as well >as *motd (which change from time to time)). > >Is there a standardized script that I can use with pwd_mkdb to auto >install these files into all users' home directories? Or, am I on my own >to hack something together to suit my tastes? If you like a different approach you can force them use pdksh (in the ports tree) which has a restricted mode. Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://www.giovannelli.it/~gmarco http://www2.masternet.it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message