From owner-freebsd-questions@FreeBSD.ORG Tue May 17 13:29:14 2011 Return-Path: Delivered-To: FreeBSD-Questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E919D106564A for ; Tue, 17 May 2011 13:29:14 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.4.196]) by mx1.freebsd.org (Postfix) with ESMTP id B2BFB8FC0A for ; Tue, 17 May 2011 13:29:14 +0000 (UTC) Received: from corellia.vindaloo.com (ool-182c0165.dyn.optonline.net [24.44.1.101]) by mta1.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0LLC00HU6C2OC9W0@mta1.srv.hcvlny.cv.net> for FreeBSD-Questions@freebsd.org; Tue, 17 May 2011 08:59:13 -0400 (EDT) Received: from hadar.vindaloo.com (hadar.vindaloo.com [172.24.145.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by corellia.vindaloo.com (Postfix) with ESMTPSA id 7AA2128460 for ; Tue, 17 May 2011 08:59:12 -0400 (EDT) Resent-date: Tue, 17 May 2011 08:59:11 -0400 Date: Tue, 17 May 2011 08:32:01 -0400 Resent-from: Christopher Hilton From: Christopher Hilton In-reply-to: Resent-to: FreeBSD-Questions@freebsd.org To: Alano Conraz Resent-message-id: <0LLC00HU7C2OC9W0@mta1.srv.hcvlny.cv.net> Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.1084) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <4DC42368.3040902@exonetric.com> Cc: Subject: Re: how to use cfs (cryptographic file system) ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 13:29:15 -0000 No problem: I looked up my solution to the problem because I submitted a patch to fix things. It's here (ports pr #155788): http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/155788 After this you should be able to create an encrypted filesystem with cmkdir and attach it with cattach and detach it with cdetach. -- Chris On May 17, 2011, at 6:53 AM, Alano Conraz wrote: > I tried this and it seems to work. > Thank you very much for your help! > > Have a good day. > > While still being useful cfsd is old and doesn't conform to the latest practices in nfs servers. In particular, it doesn't: use tcp, use IPv6, or do nfs v3 or later. > > I changed the line in the .../rc.d/cfsd script that came with the port to the following: > > mount -o port="$cfsd_port",nfsv2,udp 127.0.0.1:${cfsd_bootstrap} "$cfsd_mountpoint" > > I changed the mount to use udp and nfsv2. I also coded the localhost address rather than the name. Finally, I made the bootstrap and the mountpoint controllable via configuration variables. I'm pretty sure that I sent these modifications to the cfs port maintainer as a patch to the port. I also probably included a KEYWORD: shutdown in the port to get by an annoying warning and the second startup. > > -- Chris Hilton > > > Chris Hilton e: chris|at|vindaloo|dot|com > ---------------------------------------------------------------------------- > "The pattern juggler lifts his hand; The orchestra begin. > As slowly turns the grinding wheel in the court of the crimson king." > -- Ian McDonald / Peter Sinfield > > > > Chris Hilton tildeChris -- http://myblog.vindaloo.com e: -- chris /at/ vindaloo /dot/ com .~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~. "I'm on the outside looking inside, What do I see? Much confusion, disillusion, all around me." -- Ian McDonald / Peter Sinfield