Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

MAC accessing UNC path

Hi everyone, sorry if this is a repeat question, but I tried searching the group and found no similar answer. We have a web application at work that points images directly to a UNC network share. It works fine on the PC but our MAC users cannot access the UNC path directly from the browser at all.

The MACs have AD login installed, so after some testing on a MAC, I found out that if I first mount the UNC to a local volume then I can access the images. However, my question is would it be possible to simply access the UNC from a Firefox browser? For example, using this URL: file:///servername/sharedname/images/123.jpg

I was thinking if worse comes to worse we will have to:
1) create a script to have all MACs mount the UNC to a volume with the same name
2) modify the web application so that if it's a MAC, then point to the volume instead of the UNC path...

Any help would be greatly appreciated.

Windows XP Pro

Posted on Apr 18, 2007 11:36 AM

Reply
2 replies

Apr 18, 2007 11:57 AM in response to ckwong723

file:// URLs work when the server is already mounted since it can just use normal filesystem calls. However, to access a server-based resource when the server isn't already mounted you need to tell the OS what protocol to use.

In most cases, assuming this is based on a Windows share, just replace file:// with smb:// to tell the Mac to use the SMB (Windows file sharing) protocol:

smb://servername/sharename/images/123.jpg

You'll probably also find that the Mac web browser doesn't understand SMB URLs since SMB isn't a protocol that most web browsers support, so at best they'll hand the connection over to the Finder. At worst they'll give an error message.

Either way you'll need to change the web app - either to use SMB URLs if Firefox supports them, or to use file URLs if it doesn't.

As far as the mounting question is concerned you can configure the Macs to mount the server at startup, either via a hard mount, or using automount to mount the server automatically as soon as any application tries to access data on it. This way you can mount the server at a consistent path that will make editing the web app easier.

The other solution that would require any client changes is to change all those UNCs to regular http URLs and serve the images via a standard web browser. This will work for all users on all systems and doesn't require any client-level changes. There's no advantage that I'm aware of to using UNCs in a web application. Since you have to change the web app anyway, this seems like a simpler approach that will continue to work in the future and doesn't require any special configuation changes that might be forgotton on new machines added to the network.

MAC accessing UNC path

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.