been trying to get clamfs working on Ubuntu 10.4. It seems like everything is working, clamfs locates infected files and prevents me from opening these.
But I am having permission troubles with a share that I have created.
My folder structure looks like this:
/.sharedfiles (this is the root directory for clamfs)
/sharedfiles (this is the actual shared folder on the server that my windows clients connect to).
When clamfs is NOT running, I can create and delete folders etc within ../sharedfiles from a windows client.
But when I turn clamfs ON I can only create files and folder immediately within ../sharedfiles.
ie I can create ../sharedfiles/newdirectory
But I can not create ../sharedfiles/newdirectory/somefile
I have played around with the permissions and ACLs but something is just not working. I should mention that the windows clients are logging into the shared directory without a user. ie they are"nobody" and in the "nogroup" group.
I have set the ACL for both .sharedfiles and sharedfiles as below:
getfacl .sharedfiles/ # file: .sharedfiles/ # owner: administrator # group: administrator user::rwx group::rwx other::rwx default:user::rwx default:user:clamav:rwx default:group::rwx default:mask::rwx default:other::rwx getfacl sharedfiles/ # file: sharedfiles/ # owner: administrator # group: administrator user::rwx group::rwx other::rwx default:user::rwx default:user:clamav:rwx default:group::rwx default:mask::rwx default:other::rwx
This is how I have configured my clamfs .xml file:
<filesystem root="/home/administrator/.sharedfiles" mountpoint="/home/administrator/sharedfiles" public="yes" readonly="no" nonempty="yes" />
Any idea on where I am going wrong? I would really like to get this working. Thanks.