LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   mount_smbfs authentication error with -N flag (https://www.linuxquestions.org/questions/%2Absd-17/mount_smbfs-authentication-error-with-n-flag-384450/)

xaenn 11-18-2005 03:39 PM

mount_smbfs authentication error with -N flag
 
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.

xaenn 11-18-2005 04:49 PM

Okay, I managed to solve the problem, it was in the way I specified my ~/.nsmbrc.

If a mod could please delete this I would appreciate it.


All times are GMT -5. The time now is 04:05 AM.