/usr/pkgsrc/security/cfs/ make && make install && make cleanAfter installation finished you have to create, configure and export a working directory:
mkdir /null chmod 0 /null echo /null localhost >> /etc/exportsNow [re]start mountd and cfsd
/etc/rc.d/mountd [re]start && /usr/pkg/sbin/cfsdconfigure a cfs mount point and mount it:
mkdir /crypt mount -o intr,-2,-w=4096,-r=4096 127.0.0.1:/null /cryptfinally mountd and cfsd should be started via /etc/rc.conf resp. /etc/rc.local, also you can add the mount command to the latter.
cfs_mkdir -b /encryptedcfs_mkdir now asks for an at least 16 character long passphrase which should be of course very strong, e.g. use numbers, capitalization and special characters.
cfs_attach /encrypted usable_cfsdirand enter your pasphrase. It is now attached as /encrypted/usable_cfs and can be used like a regular directory, e.g. you can copy files into it.
cp /etc/motd /encrypted/usable_cfs/you can access /encrypted/usable_cfs/motd as usual, because this is the decrypted interface to the "real" encrypted file, now residing in /crypt/
cfs_detach usable_cfsdirNow you cannot access /encrypted/usable_cfs/ anymore
$Id: cfs.html,v 1.2 2004/05/09 11:33:01 stefan Exp $