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

Mount server volumes using location files Network
If you're fed up with typing username, password and which volume to mount every time you connect to your server, here's an easier way: Using location files.

In earlier versions of Mac OS, it was much easier to create these files, by simply dragging a URL to the desktop from any text editor. In Mac OS X, the only way I've found to do this is with a little help from Internet Explorer.

In the location field in Explorer, type:

afp://username:password@server.domain.com/volume

Select the text you just typed and drag it to the desktop. You now get a location file with the suffix .afploc. You can also use the IP address instead of domain name. If you want to use the location files in Mac OS 9, you cannot specify the volume to mount as far as I know (correct me if I'm wrong, anyone).

Put your location files in a folder, and put the folder in the dock for easy access.
    •    
  • Currently 2.75 / 5
  You rated: 2 / 5 (4 votes cast)
 
[16,274 views]  

Mount server volumes using location files | 14 comments | Create New Account
Click here to return to the 'Mount server volumes using location files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Security
Authored by: jdub on Mar 15, '02 12:05:57PM

Wouldn't that transmit your username and password in an unencrypted format?



[ Reply to This | # ]
don't need IE
Authored by: serres on Mar 15, '02 12:29:40PM

strange that you need internet explorer for this. actually mac os x finder is somehow overeager to save dropped text as location files. dragging the "afp:.." text from omniweb to the desktop creates a location file here.

i sometimes try to drag a whole bunch of urls to the desktop to have a text clipping, but the finder saves only a location file for the first url found.

not sure if this transmits passwords in clear text. i'd think that the engine responsible for mounting the volume should be the same as via "connect to..." and so take care of your clear text setting.



[ Reply to This | # ]
SMB???
Authored by: Mithrandir on Mar 15, '02 02:13:19PM

Anyone have any luck with this trying to mount SMB volumes?

Also a quick note: My password contains characters that don't work with URL's and thus must be URL encoded. This is easy enough to though. The hex numbers listed in 'man 7 ascii' are the ones you use appended to a %.

M



[ Reply to This | # ]
Alternative to IE
Authored by: dreness on Mar 15, '02 02:55:45PM

It is also possible to create location files such as this with plain ol' TextEdit. Type the URL as mentioned above, select the text, then hold the command key and drag to the desktop. This also works for creating standard text clippings.

-dre



[ Reply to This | # ]
Alternative to IE
Authored by: rezEdit on Mar 15, '02 07:48:23PM

No need to hold down command, you can just click and hold for a brief moment before dragging to get it to actually drag rather than kill your selection.



[ Reply to This | # ]
change file's name
Authored by: drjones on Mar 15, '02 03:31:26PM

after the file becomes a location file, you should at least change it's name. having your username & password a bunch of times on your local drive ain't to good either. Of course, the file still works, and BBEdit reveals no text in the file itself. Does anyone know if the pwd is transmitted clear text this way?



[ Reply to This | # ]
Bonus!!!
Authored by: unclecal on Mar 18, '02 06:55:52PM

As an extra bonus, these files can be added to your Login Items and the referenced server will be automounted at your next startup.



[ Reply to This | # ]
aliases work too
Authored by: playdrums on Mar 19, '02 01:42:30PM

If you use an alias to connect to a specific volume at a location you also won't be asked for your password if you added it to the keychain.



[ Reply to This | # ]
Anyone got this to work?
Authored by: baba on Mar 25, '02 11:10:05AM

I've tried every imaginable permutation of this and the result is always an error of type 1 when I try to use the file.



[ Reply to This | # ]
Anyone got this to work?
Authored by: georgewad on Mar 26, '02 12:14:14PM

Check your syntax. I left out a '-' and it failed. Good Luck.



[ Reply to This | # ]
AppleTalk?
Authored by: RichB on Apr 09, '02 06:17:51PM

I can get it to work if the serving Mac has Sharing via TCP/IP enabled but also get type 1 errors when trying to establish a mount via AppleTalk. This doesn't work: afp://at/name:password@ServerATname/Volume



[ Reply to This | # ]
AppleTalk solved
Authored by: RichB on Apr 20, '02 01:13:02PM
For AppleTalk there's only one slash after the colon:

afp:/at/name:password@ServerATname/Volume

[ Reply to This | # ]
doesn't work here....but why?
Authored by: jmadding on Oct 10, '02 02:16:05AM

I can't seem to get this to work and was wondering why? I have 3 computers networked together using a router. does this throw a wrench into the mix?

anyones advice is much appreciated

j



[ Reply to This | # ]
just remember, drag and drop
Authored by: natergj on Nov 07, '02 10:39:49PM

mount any network volume however you want. Then all you have to do is drag on drop the icon from your desktop/finder onto your finder's toolbar and your done. saves username and password in your keychain. It's worked for me since 10.0. I keep my network volumes right up there between "computer" and "home"



[ Reply to This | # ]