I am trying to setup an automount point using autofs to mount a samba fileshare. I am using the following syntax in my auto.misc file
mydir -fstype=cifs,rw,user=myusername ://server.domain/path/to/mount
The problem is that it is denying me with NT_STATUS_WRONG_PASSWORD (seen in /var/log/messages with -verbose turned on). It works if I add my password to the mount options using 'password=secretPass123'. I don't want the password to be stored on disk, so I would like it to prompt me for the password. When I mount it manually using "mount" if I leave out the password option, it does prompt me for the password. How do I get autofs to do the same?
I am using CentOS 6.5.