Hopefully somebody can shed some light on this, because I am baffled.
Here's the situation. I have a network drive at my University, which I can mount by connecting to the vpn with vpnc, and then using mount_smbfs. The problem is, I want to use mount_smbfs with an automatic password, so I don't have to get prompted everytime.
Great, so the man page tells me to use "-N" and mount_smbfs will read ~/.nsmbrc and /etc/nsmb.conf. The problem being, if I use the -N flag, I automatically get an authentication error. The manpage says if no password is found then it will just prompt me. However, I can specify the password, or I can not even have the file exist, and I still get the same authentication error. However, if I just use the command manually and am prompted for my password, it works fine.
For reference my two commands are as follows:
Code:
mount_smbfs -I bluestore.engr.colostate.edu -W ENGR_DOM //reinholz@bluestore/reinholz /engr
and
Code:
mount_smbfs -I bluestore.engr.colostate.edu -W ENGR_DOM -N //reinholz@bluestore/reinholz /engr
I've tried the blank ~/.nsmbrc and also tried it as the following:
Code:
[default]
password=SECRET
Now is it possible the server could just be rejecting my authentication based on the fact I am doing this? It doesn't really make much sense that that would be the case though...
Perhaps someone can tell me where I'm going wrong, or at least suggest an alternative method of letting mount_smbfs remember my password.