Folks, seeing some good things on 7 RC3 (with a few reservation the wizard and sssd.conf file being deleted upon creation of a domain). One thing that would awesome and I’m trying to do manually, is to map the Samba default shares given to newly created profiles as well as group (or LDAP) share mapped to an external NAS. (Freenas to be exact). there are reasons for this. Storage space being the biggie. I have a fstab entry to auto mount a profile share on Freenas which work perfectly. How can I get Samba to use that mapped directory to store the user default share location as well as get the custom shared folders mapped to that NAS share mount as well. Had a line:
entered in smb.conf to get profile data/user shares located there but when I did an update to my DNS entries using the web interface it disappeared. I realize this line may not be the best approach. Any ideas on how I can achieve this in more elegant/effective manner? thanks!
What we support in the gui, out of the box, are shares that are created here; /var/lib/nethserver/ibay from the gui. What you will need to do is created a template that will allow you to point to your nas shares. Other’s will have to chime in on the how because I’m still weak in my knowledge of template application.
Folks tried using mount bind in the fstab to map /var/lib/nethserver to a copy I created on my nas directory. But services fail when I try to do th is. I can use fstab to map the ibay directory but I also want to the default profiles shares to be mapped to the NAS. I tried using fstab to map the var/lib/nethserver/home to my mounted nas directory/nethserver/home directory (overriding the /var/lib/nethserver/home ->/home default) but services fial when I do this. I’ve gone over the template system. The articles I read on it are a bit vague and (and it appears to be MANY layers). Any ideas on how to get all samba user storage directories to the NAS. I’m reluctant to change the base in the templates/etc/samba/smb.conf at the the 00template_vars or the 10base files. I did see mention of the templates-custom files but cannot find concrete examples as to the structure (must match identical to "/templates/etc/(x)/…?) Any pointers here…?
sometimes the security service fails along with httpd and samba. The only thing that gets the system to start all services correctly is to set the fstab remapping for ibay back. Any ideas?
I THINK I have this sorted out. 2 possible issues. First, I needed to run “signal-event fstab-update”. Part of the problem may have been a latency issue on the FreeNAS server i was mounting using cifs. Here is my fstab entry. It seems to be working now:
Hope that is useful for anyone looking to do this. If this is a bit of a hack and someone knows a better way, please post it here so we are all the wiser. Thanks all.