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 > Map network drives on startup

Map network drives on startup
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2003
Location: Austin, TX
Status: Offline
Reply With Quote
Feb 24, 2004, 02:06 PM
 
I searched and didn't find this topic, so I'm starting a new one. In case its already come up, advanced apologies to the Mods.

I want to set up my ibook to connect to network drives when I login. I have multiple users setup for different locations/people (home/work/everyone else). I want to make it so when I login to my regular acct @ home it maps to my mp3 share as well as my webpage files where I do work on my web server. And when at work and login to my work user on the ibook, I'd like it to map to network shares I use at work.

I know how to manually setup all the network shares, but I'd like it to happen automatically because I am lazy, and would like to further develop my laziness.

How can I make it so when I login to different users, os x automatically connects to network shares?

Thanks in advance.
     
Mac Elite
Join Date: Feb 2001
Location: France
Status: Offline
Reply With Quote
Feb 24, 2004, 02:20 PM
 
Set up differerent Locations in System Preferences -> Network, and then choose from the Apple menu the apropriate "Location".
I guess that's what you mean?
     
Mac Elite
Join Date: Nov 2001
Location: Trafalmadore
Status: Offline
Reply With Quote
Feb 24, 2004, 02:26 PM
 
To mount a network share for a particular user when they log in, just drag the network share icon into the start-up items for that user in the Accounts pref pane.
     
Fresh-Faced Recruit
Join Date: Oct 2003
Location: Austin, TX
Status: Offline
Reply With Quote
Feb 24, 2004, 02:28 PM
 
Originally posted by SMacTech:
To mount a network share for a particular user when they log in, just drag the network share icon into the start-up items for that user in the Accounts pref pane.
Just tried your suggestion. I dragged the network share icon to startup items for my 'home' user. Logged out, and back in, and no luck.

I konw I ran across an option to do this once before, I just can't remember where. At the time I didn't think I'd use the feature.
(Last edited by ebsidohw; Feb 24, 2004 at 02:35 PM. )
     
Fresh-Faced Recruit
Join Date: Oct 2003
Location: Austin, TX
Status: Offline
Reply With Quote
Feb 24, 2004, 04:00 PM
 
Didn't find an option for it, but it can be done by applescript.

http://unxmaal.com/mt/archives/001897.php

hope this helps anyone else trying the same thing.

all you do is startup applescript editor, and the script is:


====
tell application "Finder"


open location "smb:// user : password @ computername / sharename"


end tell
====

save as an app, and set the app to load at startup, and voila.
(Last edited by ebsidohw; Feb 24, 2004 at 04:05 PM. )
     
Dedicated MacNNer
Join Date: Sep 2000
Status: Offline
Reply With Quote
Feb 26, 2004, 10:38 PM
 
I would like to try this but cant figure out what to put after smb:// ???
i have a g4 733 with 10.2 and a 40 G.B. martian netdrive

user = computer name gromit95
password= i don’t have a password for this drive
computername = martIan
sharename =netdrive

"smb://gromit95:???@matian/netdrive"

i tried this and no go.
what do i do about the password?

Thanks Fred
     
Mac Elite
Join Date: Apr 2000
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Feb 26, 2004, 11:28 PM
 
Simply omit the password and the preceding colon, like so:
Code:
smb://gromit95@matian/netdrive
Be careful of spaces and special characters, though.
     
   
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:55 PM.
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