First parameter of MetFS is the mountpoint that data can be written/read in a clear way.
Second parameter of MetFS is the working directory that data is encrypted.
If metfs is run with "-d" parameter, then it will run as a daemon and prints log/debug messages.
$ metfs ~metin/mount -d ~metin/enc
Parameters of MetFS must be in this sequence:
mountpoint -d (optional) working_directory
In order to enable non-privileged user to mount MetFS partition, please add the non-privileged user
to the group "fuse" in the "/etc/group" file.
Sample Usage:
$ metfs ~metin/mount ~metin/enc /* metfs mount_directory working_directory */ Enter your metfs file name (if you don't have, just hit ENTER): /* For the first time, just hit ENTER. */ New MetFS Password: /* Type your password. It won't be echoed. */ Verify MetFS Password: /* Retype your password. */ Enter the file name that will contain your encrypted data [max. 1024 characters]: ~metin/test.metfs /* Please provide full path to MetFS file. */ $ cp ~metin/my_secret_file ~metin/mount /* Copy your secret files to the MetFS partition. */ $ echo "EnderUNIX Yaz\xfdl\xfdm Geli\xfetirme Tak\xfdm\xfd @ \xddstanbul/T\xdcRK\xddYE" > ~metin/mount/test.txt $ cat ~metin/mount/test.txt EnderUNIX Software Development Team @ Istanbul/TURKIYE $ cat ~metin/enc/test.txt \xc1\xf5\xae\xb4\xdb\xd51\xc7\xa1N\xd1:\xb1_\xc3\xdb#\xfd&\xde0u\xbd\xa2\xed\xe5w\xc6\xadr~sB\xc0,\xf5\xbdb% $ fusermount -u ~metin/mount/ /* Then unmount your MetFS partition via fusermount. */ $ file ~metin/test.metfs /* The MetFS single file seems as a random data file. */ /home/metin/test.metfs: data $ metfs ~metin/mount ~metin/enc Enter your metfs file name (if you don't have, just hit ENTER): /home/metin/test.metfs
/* give full path of the file */ Enter MetFS Password: Password OK... $ ls ~metin/mount /* See your files. */ my_secret_file $ fusermount -u ~metin/mount/
For Java interface:
$ cd GUI $ javac MetFS.java $ java MetFS