![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I use the cryptographic file system to store some data encrypted. Here's a brief description on how to set it up and how to use it: First, set up some directories with the given access rights: drwxrwxrwx 4 root root 8192 Jan 1 1970 crypt d--------- 2 root root 1024 Mär 6 08:15 .cfsfs If you want to start the needed cfs daemon at startup, then setup a startup file, depending on the startup procedure of your machine. My box runs SuSE 7.1, so i use this startup file in /etc/init.d cfsd (2376 Bytes). The 3 seconds sleep time between starting the cfs daemon and mounting /crypt are quite annoying but i didn't find another way. Don't forget to setup the needed links for startup/shutdown in the different runlevels: schleim:/etc/init.d # find . -type l -name "*cfsd" -print ./rc2.d/K05cfsd ./rc2.d/S30cfsd ./rc3.d/K05cfsd ./rc3.d/S30cfsd ./rc5.d/K05cfsd ./rc5.d/S30cfsd You also need to add a line in /etc/exports: /.cfsfs localhost # needed for cfs I also had to comment out the IPv6 stuff in this file to make it work. Now you can setup a directory for use with cfs with the "cmkdir" command, make it accessible with "cattach", use it and finally make it inaccessible until the next use. |