From owner-freebsd-questions Sat Nov 11 13:44:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from femail4.sdc1.sfba.home.com (femail4.sdc1.sfba.home.com [24.0.95.84]) by hub.freebsd.org (Postfix) with ESMTP id BBB8D37B479 for ; Sat, 11 Nov 2000 13:44:19 -0800 (PST) Received: from home.com ([24.12.186.185]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001111214253.UUF26316.femail4.sdc1.sfba.home.com@home.com> for ; Sat, 11 Nov 2000 13:42:53 -0800 Message-ID: <3A0DBDF3.80C5EB62@home.com> Date: Sat, 11 Nov 2000 13:45:23 -0800 From: Rob X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "questions@FreeBSD.ORG" Subject: a virtual CFS home directory Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been trying to set up a cryptographic file system virtual home directory. So far, cfs has worked very well. I have created a new user account for myself and made the virtual directory with all of the dot files and "rc" files for this new account. What I am having trouble figuring out is how to automate the process, so when I log in, after I enter my login password, I then give my password for the cfs virtual home directory, and I am automatically in the virtual directory. I wrote a simple shell script and call it at the end of /etc/profile. If $LOGNAME is equal to my new user account, it calls "cattach" and afterwards tries to set $HOME to the virtual directory. Unfortunately, I alway end up with / as my home directory, since bash can't find the virtual directory until cattach is called, and since exporting a new $HOME doesn't seem to work. I wonder if there is any simple way to assign a new home directory at the end of the login process, but after "profile" is executed? I will keep looking through my O'Reilly bash and csh books. If I can figure all this out I am going to write it up into a HowTo. Seems like a nice system for securing the data in a laptop. Rob. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message