From owner-freebsd-questions Mon Apr 29 11:53:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA03797 for questions-outgoing; Mon, 29 Apr 1996 11:53:51 -0700 (PDT) Received: from mistery.mcafee.com (jimd@mistery.mcafee.com [192.187.128.69]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA03785 for ; Mon, 29 Apr 1996 11:53:46 -0700 (PDT) Received: (from jimd@localhost) by mistery.mcafee.com (8.6.11/8.6.9) id LAA00904; Mon, 29 Apr 1996 11:52:38 -0700 From: Jim Dennis Message-Id: <199604291852.LAA00904@mistery.mcafee.com> Subject: Re: Password in a directory To: helio@compuland.com.br (Helio Coelho Junior) Date: Mon, 29 Apr 1996 11:52:37 -0700 (PDT) Cc: questions@freebsd.org In-Reply-To: <199604280016.VAA01732@sv.compuland.com.br> from "Helio Coelho Junior" at Apr 27, 96 09:16:33 pm 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 ? > > thanks! > HElio. 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). Under Linux you could look into the cryptfs (Cryptographic FileSystem) program. From what I gather (perusing the HOW-TO) it's available on some other forms of Unix. I guess it wouldn't be completely transparent (i.e. the 'cd' command wouldn't invoke the 'cattach' command which is the program that actually prompts for the cryptographic key and performs the other necessary work to allow access. However it seems that cfs is user and applications transparent beyond that point. Jim Dennis, System Administrator, McAfee Associates