You are on page 1of 5

macosxhints.com - A collection of tips on accessing Windows file s... http://www.macosxhints.com/article.php?story=200407262346112...

Pick of the Week - Feb 12th [Show all picks]


Home Design Studio - 3D home design app

Submit Hint • Search • The Forums • Links • Stats • Polls • FAQ • Headlines • RSS 10,000+ hints and counting!

Welcome to macosxhints.com Search: Go! Advanced

A collection of tips on accessing


Windows file servers From our Sponsor...
Thu, Jul 29 '04 at 9:47AM PDT • Submitted by J^T

Windows servers use a Microsoft-proprietary network protocol called SMB to


provide file services. Mac OS X 10.1 and later can act as a SMB client. There
are five items of data that are crucial in the SMB world:

The server address � either a DNS name


(server.xxyyy.company.com), an IP address, or (if you follow tip 8) a
WINS name.
The share name � the name of the "share point" the the server is
serving the files under.
Your user ID � your corporate Windows login ID.
Your Windows account domain � where your user ID "lives" in the
Windows world.
(For tip 8) The Windows resource domain for workstations in your region
-- a grouping of Windows machine names. In small-scale environments,
the Windows account domain and resource domain might be the same.
User Functions
Read the rest of the hint for the tips... Username:

Password:
The nine tips:
Note: these tips are written assuming a corporate intranet environment, but
Login
they'll work anywhere.)
Don't have an account yet? Sign up as a New
1. Get Panther (Mac OS X v10.3) � earlier versions of Mac OS X have User • Lost your password?
SMB functions, but Panther does it much better.

From our sponsors...


2. When creating your Mac OS X account, set your "Short Name" to your
corporate user ID in lower case. This can save you much typing later!
(You can only set your short name when you create your Mac OS X
account. If you already have something else, remember this tip for next
time you set up a machine.)

What's New:
3. Use Finder's "Connect to Server" function with a "smb:" URL, rather HINTS
than trying to browse to the server via the Network folder. Browsing is 4 new Hints in the last 1 day
unwieldy and very slow in a large-scale corporate environment.
COMMENTS last 2 days
10.4: Compact sparse disk images via ...

4. When responding to the "SMB/CIFS Filesystem Authentication" box, A script to back up files to a single... [+6]
CAREFULLY read all the values. They all look very similar and are easily 10.4: Create new blank text files via... [+12]
mis-read. A very common stumbling point is the domain name � in Make remote tech support as simple as... [+2]
some environments it defaults to something that's close, but not quite Create a hard-drive based OS X installer [+5]
correct. 10.4 Server: Enable the Blojsom Admin...
Sync iCal with Google Calendar and se...
5. Here's how to convert UNC names to "smb:" URLs: Add "smb:" to the Use Grapher to embed equations in Pag... [+8]
front and flip all backslashes to forward slashes. Example: Fix a localized media crashing bug in...
SERVERSHARE\Folder1\Folder2\File.dat becomes 10.4: Boot another OS while OS X is h...
smb://SERVER/SHARE/Folder1/Folder2/File.dat Recover from an incomplete Erase Free... [+6]
Add a 'Go to Parent Folder' button to... [+31]

6. Use the smb URL scheme knowledgeably. 10.4: Disable integrated iSight cameras [+5]

1 sur 5 29/03/07 17:36


macosxhints.com - A collection of tips on accessing Windows file s... http://www.macosxhints.com/article.php?story=200407262346112...

Basic format: smb://server/share


A hints milestone reached...
List all shares on a server: smb://server
Easily convert photos to black and wh...
Specify an Windows domain and user ID:
10.4: Use .Mac iChat certificates in ...
smb://domain;user@server/share
Add chapter markers to ripped DVDs fo... [+5]

This last format is the best format to use to add a share to your Allow Address Book to connect to LDAP... [+2]
favorites or make an alias. 10.3: Remove the authentication timeo...
10.3: Use improved camera screen capt...
Example: smb://DOMAIN;userid@server.xxyyy.company.com/SHARE
View hidden desktop in Codetek Virtua...
� connect to the share (DNS name for server)
Possibly watch unmountable DVDs
Example: smb://DOMAIN;userid@server.xxyyy.company.com � list
10.4: Integrate CUPS 1.2.8 with Mac O...
the shares
Example: smb://DOMAIN;userid@SERVER/SHARE � connect to the Transparent windows in any Cocoa program

share (WINS name for server) Change iTunes' import destination

LINKS last 2 weeks


No recent new links
7. Use server favorites and aliases to save typing. (And use the
smb://domain;user@server/share URL format for your favorites and
aliases.)
What's New in the Forums?
8. Set your Windows workgroup/resource domain and WINS server: display fails to work after startup following power
cut
1. Find out your Windows resource domain for workstations in your New Mac Book Duo running really slow+New Mac
office and local WINS server address. (Ask your desktop
User
computer support people.)
Run program at startup
2. Launch the "Directory Access" utility (in the
Ditto namedfork/rsrc errors
/Applications/Utilities folder).
How do I install DD-WRT on Linksys WRT54G v6?
3. Click the padlock icon in the lower left of the window and
Adding Trash Icon to finder sidebar
authenticate as an admin user.
OS 10.4.9 Issue?
4. Select SMB, and press Configure.
Server Help???
5. Set Workgroup to your Windows resource domain, and WINS
Running native mac apps and ssh forwarding
server to your WINS server IP address, and press OK.
can itunes display artwork without embedding the
6. Press Apply and wait for a few seconds.
cover
7. Restart your Mac.

9. Advanced trick � use a ~/.nsmbrc file to get the Windows account The Editor's Corner...
domain to default correctly. Place a text file called .nsmbrc in your Here are some of my (robg) other projects...
home folder with the following two lines. Change the "workgroup="
value to your Windows account domain. • The Robservatory
My blog - Macs, tech, etc.
• Mac OS X Power Hound
[default] The best of Hints in print
workgroup=DOMAIN • Inside iWork
An iWork training DVD
• Macworld
Column, features, online...
Enjoy!

[robg adds: We've run versions of some of the above before as standalone Hints by Topic
hints, but this one really pulls it all together in one spot quite nicely...] Network Go!

• [19,744 views]
Rate this hint: [ 1 · 2 · 3 · 4 · 5 ] Average rating:
News from Macworld
Apple introduces 'Complete My Album' on iTunes
Hint Options Creative Suite preview: Dreamweaver CS3
Mail Hint to a Friend
Printable Hint Format Creative Suite preview: Illustrator CS3
Hacking Apple TV
Creative Suite preview: InDesign CS3
Macworld Podcast: Apple TV
A collection of tips on accessing Windows file servers | 11 comments | Creative Suite preview: Photoshop CS3
Create New Account
Premiere Pro CS3 to feature Blu-ray output
Oldest First Threaded Refresh Reply Creative Suite 3 largest release in Adobe's history
Click here to return to the 'A collection of tips on accessing Windows file Device Central CS3 simplifies mobile content
servers' hint
creation
The following comments are owned by whomever posted them. This site is not
responsible for what they say.

A collection of tips on accessing Windows file servers The macosxhints Poll


By: J^T on Thu, Jul 29 '04 at 3:32PM PDT How many networked (Ethernet, AirPort, etc.)
devices are on your home network (do not

2 sur 5 29/03/07 17:36


macosxhints.com - A collection of tips on accessing Windows file s... http://www.macosxhints.com/article.php?story=200407262346112...

The original article had its dashes and backslashes mangled during the editing
process. Until robg gets a chance to fix the original post, here is the fixed
version:

Windows servers use a Microsoft-proprietary network protocol called SMB to


provide file services. Mac OS X 10.1 and later can act as a SMB client. There are
five items of data that are crucial in the SMB world:

The server address -- either a DNS name (server.xxyyy.company.com),


an IP address, or (if you follow tip 8) a WINS name.
The share name -- the name of the "share point" the the server is serving
the files under.
Your user ID -- your corporate Windows login ID.
Your Windows account domain -- where your user ID "lives" in the
Windows world.
(For tip 8) The Windows resource domain for workstations in your region
-- a grouping of Windows machine names. In small-scale environments,
the Windows account domain and resource domain might be the same.

Read the rest of the hint for the tips...

The nine tips:


Note: these tips are written assuming a corporate intranet environment, but
they'll work anywhere.)

1. Get Panther (Mac OS X v10.3) -- earlier versions of Mac OS X have SMB


functions, but Panther does it much better.

2. When creating your Mac OS X account, set your "Short Name" to your
corporate user ID in lower case. This can save you much typing later!
(You can only set your short name when you create your Mac OS X
account. If you already have something else, remember this tip for next
time you set up a machine.)

3. Use Finder's "Connect to Server" function with a "smb:" URL, rather than
trying to browse to the server via the Network folder. Browsing is
unwieldy and very slow in a large-scale corporate environment.

4. When responding to the "SMB/CIFS Filesystem Authentication" box,


CAREFULLY read all the values. They all look very similar and are easily
mis-read. A very common stumbling point is the domain name -- in
some environments it defaults to something that's close, but not quite
correct.

5. Here's how to convert UNC names to "smb:" URLs: Add "smb:" to the
front and flip all backslashes to forward slashes. Example:
\SERVER\SHARE\Folder1\Folder2\File.dat becomes
smb://SERVER/SHARE/Folder1/Folder2/File.dat

6. Use the smb URL scheme knowledgeably.

Basic format: smb://server/share


List all shares on a server: smb://server
Specify an Windows domain and user ID:
smb://domain;user@server/share

This last format is the best format to use to add a share to your favorites
or make an alias.

Example: smb://DOMAIN;userid@server.xxyyy.company.com/SHARE --
connect to the share (DNS name for server)
Example: smb://DOMAIN;userid@server.xxyyy.company.com -- list the
shares
Example: smb://DOMAIN;userid@SERVER/SHARE -- connect to the share
(WINS name for server)

7. Use server favorites and aliases to save typing. (And use the
smb://domain;user@server/share URL format for your favorites and
aliases.)

8. Set your Windows workgroup/resource domain and WINS server:

1. Find out your Windows resource domain for workstations in your


office and local WINS server address. (Ask your desktop

3 sur 5 29/03/07 17:36


macosxhints.com - A collection of tips on accessing Windows file s... http://www.macosxhints.com/article.php?story=200407262346112...

computer support people.)


2. Launch the "Directory Access" utility (in the
/Applications/Utilities folder).
3. Click the padlock icon in the lower left of the window and
authenticate as an admin user.
4. Select SMB, and press Configure.
5. Set Workgroup to your Windows resource domain, and WINS
server to your WINS server IP address, and press OK.
6. Press Apply and wait for a few seconds.
7. Restart your Mac.

9. Advanced trick -- use a ~/.nsmbrc file to get the Windows account


domain to default correctly. Place a text file called .nsmbrc in your home
folder with the following two lines. Change the "workgroup=" value to
your Windows account domain.

[default]
workgroup=DOMAIN

Enjoy!
--J^T

A collection of tips on accessing Windows file servers - By: osxfan57 on Fri,


Oct 15 '04 at 11:01AM PDT
A collection of tips on accessing Windows file servers - By: drtofu on Tue,
Apr 11 '06 at 9:42AM PDT

Keychain and SMB servers


By: J^T on Thu, Jul 29 '04 at 3:44PM PDT

By the way, if you use the full smb://domain;user@server/... syntax, the Mac
OS X Keychain will work.

A collection of tips on accessing Windows file servers


By: tjfarrell on Thu, Jul 29 '04 at 6:05PM PDT

Thanks for this. I have two related questions.

First - what does tip 8 do for us? What do we lose by not doing it?

Second. I often get error messages such as

"The Finder cannot complete the operation because some data in


"smb://user@server" could not be read or written (Error code -36). "

Does anybody know if this error code is a mac error code or an error code from
the server. If from the SMB server, where do I find the error code definitions.

Thanks.

---
--
T. Farrell

A collection of tips on accessing Windows file servers - By: sapridyne on


Thu, Jul 29 '04 at 9:06PM PDT
A collection of tips on accessing Windows file servers - By: maelcum on Fri,
Jul 30 '04 at 11:19AM PDT
A collection of tips on accessing Windows file servers - By: Fillman on Thu,
Aug 5 '04 at 7:09PM PDT
A collection of tips on accessing Windows file servers - By: intensity on Mon,
Aug 9 '04 at 6:43PM PDT

M$ smb firewall ports


By: FlaSheridn on Fri, Jul 30 '04 at 1:44PM PDT

For the Windows end, see http://support.microsoft.com/?kbid=298804,


"Internet firewalls can prevent browsing and file sharing".

• Microsoft file sharing SMB: User Datagram Protocol (UDP) ports from 135
through 139 and Transmission Control Protocol (TCP) ports from 135 through
139.
• Direct-hosted SMB traffic without a network basic input/output system

4 sur 5 29/03/07 17:36


macosxhints.com - A collection of tips on accessing Windows file s... http://www.macosxhints.com/article.php?story=200407262346112...

(NetBIOS): port 445 (TCP and UPD).

Usual disclaimers apply; M$ seems to assume you won't turn your firewall on,
and that if you do, you'll have to live with breaking stuff, rather than the
compromise of running a firewall and opening ports.

Another possibility
By: mcwelch16 on Tue, Oct 5 '04 at 5:31PM PDT

I was just having immense trouble mounting a workgroup. I even checked just
about every forum I could find and didn't find the answer that solved my
problem. My persistence payed off, however and I discovered something that
got my system working. In the Authentication for loggin onto a server it says
"WORKGROUP/DOMAIN". By default, it was displaying my workgroup and
nothing more. I added a '/' to the end of the workgroup (my domain is empty)
and all of a sudden everythign was working perfectly.

To save myself the trouble of having to type the '/' every time, I modified my
connect line to say "smb://WORKGROUP/;SERVER/SHARE"

I hope this will help save some people some time and frustration.

Copyright © 2007 Mac Publishing LLC (Privacy Policy) Contact Us Powered By Geeklog
All trademarks and copyrights on this page are owned by their respective owners. Created this page in 0.19 seconds

5 sur 5 29/03/07 17:36