[Samba] Re: Samba + CFS

Rado Rethmann discussion at centermail.net
Wed Nov 24 11:33:33 GMT 2004


On Tue, 23 Nov 2004 15:19:44 +0100, Holger Krull <holger.krull at gmx.de>  
wrote:

>> I think that the problem is Samba. A cfs directory can only be accessed  
>> by  the user who set it up. Even root won't see anything.
>> Samba will access the dir with user priviliges but tries to read the   
>> disk-free info as user root or samba or whatever but not as user.
>
> Take a look at the 'dfree command'. You can insert a script there or  
> return a fixed value.
>

Hello Holger, thank you for your advise. That does the trick.
I've written my own dfree script and now I can write to my crypted share.

If anybody should ever run into the same problems, here is my (simple)  
dfree script:

#!/bin/sh
DIR=`pwd`
if [ $DIR = "/var/cfs/crypt" ] ; then
     df -k /home | tail -1 | awk '{print $2" "$4}'
else
     df -k $1 | tail -1 | awk '{print $2" "$4}'
fi

I've stored the crypted files in a home dir, so please adapt for your own  
needs.

Rado



More information about the samba mailing list