I need a suggestion how to configure autofs to mount a windows share automatically to CentOS.
I can successfully mount the share, but I can't seem to enter parameters into auto.master corectly.
Could someone look at my mount command (which executes correctly) and advise me what to put into auto.master?
mount -t cifs -o username=user,password=pass,rw,dir_mode=0777,file_mode=0777 //server1/resources/50004 /var/www/html/resources/50004
The mount parameters must be the same. I want to use auto.master
and auto.50004
files.
Nothing else will be mounted, just the one directory above.
What should I put into auto.master
and what into auto.50004
?
Here is my auto.master:
/misc /etc/auto.misc
/net -hosts
+auto.master
/var/www/html/resources/50004 /etc/auto.50004
And my auto.50004:
/50004 -fstype=cifs,rw,user=user,pass=password,file_mode=0777,dir_mode=0777 ://server1/resources/50004
Could someone please have a look, this is driving me mad