Hi there.
I have several problems to mount a windows share on freenas.
In the moment i do all as root, which is maybe not the best but for testing ok..
I created a directory /mnt/Server03VM
First problem is that after a reboot this directory is gone.
mount_smbfs -I 192.168.0.250 //Administrator@Server03/Backupshare /mnt/Server03VM
This command works but ask for a password, which i don't like.
So i created /root/.nsmbrc
[Server03:Administrator]
workgroup=SALES
password=xXxXXx
[192.168.0.250:Administrator]
password=xXxXXx
That doesn't work too, or i do something wrong.
When using /etc/nsmb.conf (which should be for fstab only) it doesn't work too.
Even /etc/nsmb.conf has the same problem, that after reboot it is changed to the original.
[default]
workgroup=SALES
[SERVER03]
addr=192.168.0.250
[SERVER03:Administrator]
password=xXxXXx
So how can i mount a windows share from a script on freenas system without entering password?
regards
I have several problems to mount a windows share on freenas.
In the moment i do all as root, which is maybe not the best but for testing ok..
I created a directory /mnt/Server03VM
First problem is that after a reboot this directory is gone.
mount_smbfs -I 192.168.0.250 //Administrator@Server03/Backupshare /mnt/Server03VM
This command works but ask for a password, which i don't like.
So i created /root/.nsmbrc
[Server03:Administrator]
workgroup=SALES
password=xXxXXx
[192.168.0.250:Administrator]
password=xXxXXx
That doesn't work too, or i do something wrong.
When using /etc/nsmb.conf (which should be for fstab only) it doesn't work too.
Even /etc/nsmb.conf has the same problem, that after reboot it is changed to the original.
[default]
workgroup=SALES
[SERVER03]
addr=192.168.0.250
[SERVER03:Administrator]
password=xXxXXx
So how can i mount a windows share from a script on freenas system without entering password?
regards