From owner-freebsd-questions Sat Nov 11 20: 7: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from femail1.sdc1.sfba.home.com (femail1.sdc1.sfba.home.com [24.0.95.81]) by hub.freebsd.org (Postfix) with ESMTP id 6F19337B479 for ; Sat, 11 Nov 2000 20:06:59 -0800 (PST) Received: from home.com ([24.12.186.185]) by femail1.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001112040641.TVXI14040.femail1.sdc1.sfba.home.com@home.com> for ; Sat, 11 Nov 2000 20:06:41 -0800 Message-ID: <3A0E17A3.F235CCF3@home.com> Date: Sat, 11 Nov 2000 20:08:03 -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: Re: a virtual CFS home directory References: <3A0DBDF3.80C5EB62@home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I think I can partly answer my own question. I believe I have to cattach as part of the login, before the shell starts up and assigns $HOME. "Using Csh and Tsch" book has been helpful. Rob. Rob wrote: > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message