Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > mount_smbfs woes

mount_smbfs woes
Thread Tools
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Aug 17, 2003, 11:29 AM
 
I want to write a backup script for my parents. All I still need in order to do this is automatic mounting of a share. Here's my setup.

One PC (Win2k), one iBook, possibly more in the future. And one server running FreeBSD 5.1.

The server is supposed to regularly mount the PC share and do a backup using tar, rsync or whatever.

So, mounting my share I do the following

mount_smbfs -N //user@client/office /mnt

My .nsmbrc file looks as follows

[client]
addr = client.home.net

[client:user]
password = userpassword

The user password is in plain text (as you would type it).

I get the following error: "mount_smbfs: unable to open connection: syserr = Authentication error"

If I omit the "-N" option and type in the password as usual, I can mount it. Both machines see each other, I can browse the shares of the server on the client and I can mount the smb shares of the client on the server, too.

smbmount works on Linux only, so I can't do that.

Can anyone help me, please
I don't suffer from insanity, I enjoy every minute of it.
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Aug 17, 2003, 12:15 PM
 
What are the perms on your ~/.nsmbrc file? I htink they have to be mode 0600 in order for it to work.

How did you create the password?
(from my .nsmbrc file):

Code:
## bogus sample password here generated with ## "smbutil crypt bogus" #password=$$1744a412a29
-DU-...etc...
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Aug 17, 2003, 05:38 PM
 
Ok, I have found a solution to the problem. Take a look Google Groups.

The reason it didn't work out is that I had to use capital letters for all stuff, the machine name and the user name (although my system was configured to use small letters for the user name `admin'). But thanx anyway. Does the encrypted password work as well as the plain-text one?
I don't suffer from insanity, I enjoy every minute of it.
     
Senior User
Join Date: Jan 2001
Location: california
Status: Offline
Reply With Quote
Aug 26, 2003, 09:52 PM
 
the encrypted password should be better for security because it doesn't send a clear-text password over your network. also, you have to do some kind of registry hack to get plain-text passwords working in windows, so you might as well stick to what you've got :c)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:19 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2