Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Accessing SMB/Windows Shares from 10.1 Network
10.1 claims to be able to access Windows (aka Samba) shares through Finder. It does, but getting it to work is not obvious. According to a KnowledgeBase article, you do "Connect to Server.." in finder and enter a URL of the form:

smb://servername/sharename/

Two things to note:
  1. The actual url might require a username, in the form of:

    smb://Username@servername/sharename/

    where Username is a user that can log into the box.

  2. You cannot access shares that require Microsoft's Active Directory Service for authentication (as far as I have been told). It seems that this requires a different kind of password encryption not supported by OS X
I have not been able to determine how to do the mount on the command line, but it is probably done via the mount command as normal in unix with smbfs as the filesystem type.
    •    
  • Currently 5.00 / 5
  You rated: 5 / 5 (3 votes cast)
 
[13,381 views]  

Accessing SMB/Windows Shares from 10.1 | 31 comments | Create New Account
Click here to return to the 'Accessing SMB/Windows Shares from 10.1' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Shortcuts + Serving a Windows share
Authored by: Anonymous on Oct 01, '01 04:04:21PM

Is it easily possible to create a connect to shortcut? Can I just make a shortcut to the mounted directory?

Also, is it possible to share a connection to a windows box? I would like to set up a shared area on my computer that will be accessable from Windows and Macintosh boxes without extra softare on the client end. Anyone?

Nathan



[ Reply to This | # ]
Shortcuts + Serving a Windows share
Authored by: davetron5000 on Oct 01, '01 06:16:26PM

When I created a shortcut and then unmounted the driver, double-clicking the shortcut reconnected me (though I had to enter the password again), but I got an error from Finder saying it couldn't find the referenced alias or something.

So, I then dragged the mounted volume to the dock. I unmounted the volume after that and then clicking on the icon in the dock remounted it with no problems (although, again, I had to type in my password)



[ Reply to This | # ]
Shortcuts + Serving a Windows share
Authored by: myersm on Oct 04, '01 09:37:25AM

Dragging the volume to the dock didn't work for me.

I was able to do it, but clicking it opened a window that revealed the top level of my startup disk.



[ Reply to This | # ]
hmm
Authored by: Anonymous on Oct 01, '01 05:22:37PM

looks like there are two cli apps: smbutil and mount_smbfs. I bet the latter would let you mount it. :)

i can log onto a share with smbutil, but the Connect To Server dialog simply WILL NOT WORK for me no matter how I format the URL. $@*&!!!



[ Reply to This | # ]
hmm
Authored by: davidp on Oct 01, '01 11:12:17PM

If it doesn't work for you, just like for me, where it gives you "no file services at URL...." then it may be because you had Dave for OSX installed before. 10.1 sort of disables Dave (and you can't reinstall it because it looks for 10.0.4) but the SMB connect feature never worked for me until I *de-installed* Dave from my system (using the installer for that, there is an uninstall option.

After that, it worked flwlessly, except that the functionality is pretty limited and I'll be happy to use the next working version of Dave instead.

Also, when adding the SMB address to the favorites I managed to include the workgroup but nothing more, so I have to type user and password each time, on the connect window or on the adddress before hitting connect.

Frankly, without network browsing, and without the ability to serve files with SMB there's really not much to talk about. Dave was working perfectly and handling the job very well before 10.1



[ Reply to This | # ]
hotdamn
Authored by: Anonymous on Oct 02, '01 04:20:09PM

that did it all right. yes, i had the dave alpha installed. i had manually removed the DAVE files, but obviously I did not catch them all or revert any files the DAVE installer may have modified.
thanks!



[ Reply to This | # ]
Other Syntax
Authored by: spyro_le_dragon on Oct 01, '01 05:27:05PM

I personnaly have to write:

smb://domain;servername/sharename

And it works well for simple names.
is there a way to have the list of the shares on a server and the list of the servers in a domain? (we have a NT password server). Can we use spaces and other special caracters?



[ Reply to This | # ]
Other Syntax
Authored by: davetron5000 on Oct 01, '01 06:22:45PM

I think the KB article says that you cannot browse very easily. I also seem to remember it not allowing spaces. I'm only using it for my home network and don't use spaces for the share names, and I know what the machines are, but it is kindof annoying that you can't browse. Sharity lets you browse, but it ain't free :(



[ Reply to This | # ]
SMB on 10.1 and the
Authored by: jcalchi on Oct 02, '01 06:08:31PM

Thank you all for the help mounting to Window$ shares with OS X 10.1. I was able to use it only for a short while. Upon mounting the shares, I got a nasty call from my IT dept. They do not appreciate all the "._.Trashes" files etc. being created on all the shares that I visit. I have since been shut down from mounting shares via SMB on 10.1. I was using Dave, but that doesn't work now in 10.1. Does anyone know what these files are for, and what I can do about them? Until I get this fixed, I am forbidden from mounting shares with my Mac. (Of course no one even knew I was doing it for the last six months with Dave for OS X.)



[ Reply to This | # ]
SMB on 10.1 and the
Authored by: myersm on Oct 04, '01 10:08:43AM

The "special" files are a bit annoying.

I am saving PDFs to a WinNT sharevolume from within Acrobat Reader. In addition to the data file, it is also creating a separate file for the resource fork:

somefile.pdf
._somefile.pdf

Is this a behavior that the OS could perform conditionally? It's all unix under the hood, right? Couldn't programs check to see if the fstype of the destination volume was smbfs and act accordingly -- omit the resource fork?

In the meantime, I will have an agent delete these special files on an hourly basis.



[ Reply to This | # ]
Stymied!
Authored by: myersm on Oct 04, '01 10:23:28AM

Ok, now I discover that if I delete the special resource file associated with the data file, the Mac can no longer open the file.

Whether I double click the file in a finder window, or try to open the file from within Acrobat Reader, I get an error:

"There was a Macintosh system error (-39)."

Of course, the PDF file is intact and will open just fine on the WindowsNT side.



[ Reply to This | # ]
my experiments
Authored by: sfhipster on Oct 16, '01 03:20:17AM

1. from smb://$computername/$share
does leave the ._ trashes files
also saves resource forks

2. from sharity (free for individual use)
does not leave ._trashes type files
but does do the resource fork thing.
however, i deleted the resource fork file, and could still open files from the mac.

3. thought that with os X, we'd be done with the resource fork thing, or is is a hfs+ file system thing? wonder if my driver were formatted ufs, would there still be the issue of resource forks?

--alan



[ Reply to This | # ]
Can't connect to Win 98 client
Authored by: greggomer on Oct 02, '01 10:32:05PM

Any thoughts, I have a couple of simple windows 98 clients, and I can't connect to them. I tried smb://10.1.1.33/C/ which is not password protected. And I also tried smb://10.1.1.34/SHARE/ which is password protected. Neither share was accesible. I dont even get a prompt to enter a password.

It is a simple Network, no Server or domain, just Piere to Piere home network. Can this implimentation of Samba Work with a Win 98 client, is so any tips on what we need to do? Or will this only work with Win 2000 and servers?

From the look of the Kbase article, right now they only have one error message that covers all the possible errors "No file server available" It says you'll even get that if the password was wrongs. , so I am hopeful that shows this portion of OS X isnt complete and will be improved in the future.

Thanks for the input.

Greg



[ Reply to This | # ]
Can't connect to Win 98 client
Authored by: Another osX User on Oct 03, '01 02:11:52AM

FWIW, I couldn't connect to my girlfriend's Win2K machine using the IP.

Try connecting using smb://<Computer Name>/<Share Name>



[ Reply to This | # ]
Same Here
Authored by: greggomer on Oct 03, '01 06:13:04PM

I tried to connect via the computer name, just for kicks, it let me right in. Didn't even require the Workgroup or password. Tried again with the IP, it didn't work. Don't know why, but only the computer name worked for me. But hey, it works great so no complaints.


Greg



[ Reply to This | # ]
Can't connect to Win 98 client
Authored by: germsteel on Mar 05, '02 07:20:08PM

My solution:

Use Gordon Shukwit's excellent SMB Browse tool
www.shukwit.com

gs



[ Reply to This | # ]
Sharity
Authored by: Anonymous on Oct 03, '01 03:21:26AM

I have found that Sharity 2.5 is the best solution to connecting to a Windows network for me. I am a student and get a free license by just signing up on the Sharity web page.

Sharity lets me see all the local Windows shares with just the workgroup and wins address (which I didn't need). I can easily connect and the shared directories are mounted to my desktop. It is a great program, I strongly suggest it!

Nathan

P.S. I will have to check to see if this method also places the extra Mac OS X specific files into the shares.



[ Reply to This | # ]
mount works
Authored by: marlet on Oct 08, '01 09:36:28PM

I use mount -t smbfs //username:password@server/share /mount_point and it works fine.



[ Reply to This | # ]
mount works
Authored by: jurg on Oct 16, '01 04:40:50AM

I think the connect window in aqua ("connect to server") uses mount_smbfs, which is called by mount -t smbfs. Using a config file .nsmbrc for mount_smbfs (see man mount_smbfs) in your home directory influences the behaviour of connecting with "connect to server" from the menu. The syntax of .nsmbrc can be found from the template /private/var/root/.nsmbrc.

I use a .nsmbrc file in /Users/<my name> in order to connect to a NT server through a ssh tunnel, avoiding a complicated smb URL. You can also store scrambled passwords in this config file.

Peter Jurg



[ Reply to This | # ]
Active Directory Authentication
Authored by: saints on Oct 11, '01 01:04:38PM

I personally have had no problems accessing shares that require Active Directory for Authentication. Try smb://domain;server/share.

We use active directory for authentication on both our unix servers as well as windows boxes. One thing to note, you must install smb server to map to the 10.1 box from a windows box. This will require a local user account on the 10.1 box unless you allow guests.



[ Reply to This | # ]
ohyeah!!!
Authored by: sfhipster on Oct 16, '01 02:54:45AM

i'd been looking to figure out this one for a few days... hadn't used DAVE in so long that i'd forgotten all about it; uninstalled and and viola!!! whoo hoo!



[ Reply to This | # ]
authentication bypass?
Authored by: Anonymous on Oct 21, '01 08:35:51PM

Is there a way to bypass always having to authenticate myself before the server mounts on my desktop?. i just want to be able to select the share in my finder toolbar and have the share mount on my 10.1 desktop.

The way it is now, when i click on the share icon in my finder toolbar, I am always prompted with the authentication window.



[ Reply to This | # ]
Apple's how-to released
Authored by: robg on Nov 16, '01 09:12:10AM
Apple just put up a very nice PC/Mac Filesharing How-To ... give it a read for a ton of good info on how to share files between OS X and PC's. -rob.

[ Reply to This | # ]
Storing passwords for SMB shares
Authored by: Anonymous on Nov 29, '01 10:27:26AM

Apple's HOWTO has a very interesting section on storing your passwords.

This means that you do not have to enter your username, password and workgroup everytime you connect, just smb://server/share.

All you need to do is create a file named .nsmbrc in your home directory. The file is of the following format:

[SERVER:USER:SHARE]
addr=xxx.xxx.xxx.xxx
password=your_password
workgroup=WORKGROUP

where xxx.xxx.xxx.xxx is the ip address of the server, etc.

You can have as many of these blocks as you like.

To protect your passwords, you should also chmod 600 the .nsmbrc file.

That done, has anyone had any success with automatically mounting shares on login? I guess you could produce a script using the mount_smbfs command, but then the mounts wont appear on the desktop.



[ Reply to This | # ]
Storing passwords for SMB shares
Authored by: james_sorenson on Nov 29, '01 03:01:18PM

I use the .nsmbrc file as well. However, you do NOT want to put in your
password as plain text.
In the terminal, run your password through this command:
smbutil crypt mypasswordhere
It will return a line of text that starts with $$.
Put that line of garbled text into the password field in your .nsmbrc file.
Works the same, but with added security.

as for mounting the server on login, I dragged my network directory onto the
Finder toolbar. Click on it, and it will log you in using the .nsmbrc file.
Not perfect, but it works well enough, for now.



[ Reply to This | # ]
Storing passwords for SMB shares
Authored by: bumpui on Feb 04, '03 03:20:28PM

Hi
it always asks me for a password whatever I do
smb://user:password@server/share
or in
.nsmbrc
Why?
Kay



[ Reply to This | # ]
Storing passwords for SMB shares
Authored by: religon on Feb 19, '03 06:43:42PM

Does this work outside an Active Directory? Must the file server also be
the PDC? Must the file server be in the same domain that the user
authenticates to?

I have tried this where my file server resides in one domain and I
authenticate users with another domain using an NT 4 PDC. I assume
domain 1 (MOZART) and domain 2 (OAK) have a trust relationship.

My file looks like this...

[NT032:IMAUSER:SHARE_DIR]
addr=192.168.0.19
password=mypass
workgroup=OAK

NT032 is in the MOZART domain.
IMAUSER authenticates with the OAK domain.

I have been using BBEdit Lite to modify the hidden dot-file. I have been
saving it as UNIX line breaks.

Frustrating.

Any insight would be appreciated.



[ Reply to This | # ]
Need help mounting from linux
Authored by: swank on Dec 05, '01 06:16:06PM

Hi,

I've got a linux 7.2 box working running samba and I can sucessfully
get to the home shares from OSX...

the problem is that I can access any of the other shares from OSX (from
the PC's it's no problem...)

Any ideas?



[ Reply to This | # ]
How to access share without a password?
Authored by: monsterjimmy on Feb 25, '02 04:21:10AM

I have a share called public, which I allow anyone to access on my network. But to be able to access it I had to give it a password. Are there anyways around this password problem?



[ Reply to This | # ]
SMB 10.1.5 to XP Pro
Authored by: Fritz on Nov 09, '02 12:50:36PM

OK, this is making me yell at my machines.

I have an XP Pro box I use at work that belongs to a network domain.
When I have it at home on my own little net that is NOT connected to the Corporate Domain, eg... I log in locally to the box with admin privledges, disable the proxy on my browser and it works fine. It has a share called MacShare, with everyone, full control at the share level.

Using the mac connect to server- I go smb://xxx.xxx.xxx.xxx/MacShare
and am prompted for

WorkGroup/Domain -- ( I have left this empty, tried my corporate domain, machine name)
User name --- that takes my simple mac id and adds it capitalized eg, FRITZ
Password --

WTF am I doing wrong here? I have tried all the combinations of SMB://username:password/ip address/MacShare

Please help! this really is frustrating the hell out of me.....



[ Reply to This | # ]
SMB 10.1.5 to XP Pro
Authored by: Fritz on Nov 09, '02 01:09:30PM

OK, this is making me yell at my machines.

I have an XP Pro box I use at work that belongs to a network domain.
When I have it at home on my own little net that is NOT connected to the Corporate Domain, eg... I log in locally to the box with admin privledges, disable the proxy on my browser and it works fine. It has a share called MacShare, with everyone, full control at the share level.

Using the mac connect to server- I go smb://xxx.xxx.xxx.xxx/MacShare
and am prompted for

WorkGroup/Domain -- ( I have left this empty, tried my corporate domain, machine name)
User name --- that takes my simple mac id and adds it capitalized eg, FRITZ
Password --

WTF am I doing wrong here? I have tried all the combinations of SMB://username:password/ip address/MacShare

Please help! this really is frustrating the hell out of me.....



[ Reply to This | # ]