Solved fstab entry for samba

I'm trying to mount a remote samba/cifs filesystem from FreeBSD following this guide and I have it working for interactive use, but there is no mention of mounting via fstab. How do I do his? Do I need an nsmbrc file and where would it go?

I have fstab entries for FreeBSD samba shares and they work without problems but they are not password protected. I thought I saw some reference to and fstab entry along the lines of:
Code:
//userid:password@FREENAS/SHARE<-->/mnt<----->smbfs<->rw,-N,-I192.168.1.2<--->0<----->0
but can't find it now and don't know if it is supposed to work.
 
Thanks, it helped me a lot to figure out my issue.

NB: Instead of changing /etc/nsmb.conf which is in the base system configuration. I have updated /root/.nsmbrc which cannot be changed by a future version update.
I would have preferred to do it in ~/.nsmbrc but it doesn't works as mounting the volume cannot (in my understanding) be done by a non root user.
 
Back
Top