From owner-freebsd-questions Mon Apr 29 14:41:54 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA17265 for questions-outgoing; Mon, 29 Apr 1996 14:41:54 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA17259 for ; Mon, 29 Apr 1996 14:41:50 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA05159; Mon, 29 Apr 1996 14:34:38 -0700 From: Terry Lambert Message-Id: <199604292134.OAA05159@phaeton.artisoft.com> Subject: Re: Password in a directory To: jimd@mistery.mcafee.com (Jim Dennis) Date: Mon, 29 Apr 1996 14:34:38 -0700 (MST) Cc: helio@compuland.com.br, questions@FreeBSD.org In-Reply-To: <199604291852.LAA00904@mistery.mcafee.com> from "Jim Dennis" at Apr 29, 96 11:52:37 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > Is it possible to put a password in a directory, so the > > user need to type to have access granted ? > > I don't know of any way to do this using "standard" Unix > conventions. > > You could create a special group -- with a password > and allow access using the newgrp(1) command (which > seems to be conspicuously missing from FreeBSD). This would work... the password field exists in the group file because of this. This would assume no default membership in the group. This wouldn't prompt for a password at "cd" opr "open" traversal time, however, so it would be rather kludgy in practice, unless you built it into your program (and then you could just SGID the program and impose a password on program use instead). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.