Hello, I have running already an auto mount service. In fact it mounts on access a NAS with NFS, now I have another NAS that uses samba with user and password. So in my /etc/auto_master I have this:
So in /etc/auto_example I have this
And in ~/.nsmbrc
So it works perfect with NFS but it is not working with Samba.
Also it works if I mount it manually like this:
When I try to
Code:
#/media -media -nosuid
#/- -noauto
/- auto_example
So in /etc/auto_example I have this
Code:
/mnt/server -intr,nfsv3 1.1.1.1:/share
/mnt/server2 -fstype=smbfs ://@NAS/share
And in ~/.nsmbrc
Code:
[SERVER:USER]
password=passxxx
[SERVER2:USER2]
password=pass2xxx
So it works perfect with NFS but it is not working with Samba.
Also it works if I mount it manually like this:
Code:
mount_smbfs -N -I 2.2.2.2 //@NAS/share/files /mnt/server2
When I try to
ls
it shows no files so is not working with auto mount. Can someone help me please.