[Samba] Multiple homedir entries in smb.conf ?

Laurent CARON lcaron at apartia.org
Wed Feb 13 11:11:53 GMT 2008


J. Strohschnitter wrote:
>>> ok, UnionFS is one solution - but it takes several days to configure. Is there
>>> no change to add more than one homedir template to the smb.conf (just like using
>>> variables) ?
>>>
>> What about mounting with the bind option all the
>>  > >> /home/$SERVER/home/$USERNAME dirs in /home/$USERNAME
>>
> 
> Hi
> 
> don't know about bind-option. What is meant with "bind-option" ? Is it an option
> for the smbfstab ?
> 


for i in /home/server{1..3}/home/*
do
cd /home && mkdir basename $i
mount --bind $i /home/`basename $i`
done

This script strictly untested.

you can try mount --bind directly by using

mount --bind /home/server1/home/myuser /home/myuser

Laurent


More information about the samba mailing list