Perform the following steps as a regular user. I assume the account name is user, you need to change the names of folders accordingly, depending on your actual user name.
clamfs reads a configuration file to determine what to do. A sample file is provided when clamfs is installed. Use the following command to copy this sample file to a home directory for editing:
This creates a file called clamfs.xml. Use your favorite editor to open the file. It is fairly long due to in-line comments. All the text between <- and -> is ignored by clamfs.
The default settings should work for most situations. The only two lines you need to change is the line that looks like the following:
In our example, the line should become as follows:
Note that clamfs does impose a limit of one <filesystem /> line per configuration file. However, a user can specify multiple clamfs.xml files, and start clamfs multiple times (one time for each configuration file) to set up multiple clamfs folders.
After the configuration file is edited, run the following command to start clamfs:
As mentioned, you can have multiple configuration files. If so, you have to start clamfs once for each configuration file (remember to change the name of the configuration file).