PDA

View Full Version : How to make OS X connect to a network drive on login...




TrumanApple
Dec 1, 2006, 10:52 AM
Can anyone tell me how to make OS X connect to a network drive automatically upon login? Also, I need to know how to make it so that each user account connects to the same drive using the distinct username and password they used to log on to the computer.

Can anyone help?



roland.g
Dec 1, 2006, 11:10 AM
The only thing I can think of is to mount the drive to the desktop and keychain the username and password. Then drag the drive image to the right portion of the dock, near the eject or at least to the right of the little black line. then reboot or log out and in. clicking on the drive icon in the dock will connect the drive and open a finder window to its contents. You should be able to name the share whatever you need to when you share it, I would think on the network side, not the mount side, and possibly change its icon prior to dragging it to the dock to something other than the network sphere, for easy identification.

Queso
Dec 1, 2006, 11:30 AM
Mount it, then go into System Prefs>Accounts>Login Items. Click the + button, then select the volume from the dialog box that appears.

Make sure that all accounts have the necessary username and password in their Keychain and the credentials should stay constant.

TrumanApple
Dec 5, 2006, 03:20 PM
Is there any way to make this process happen for hundreds of user accounts without actually having those users logging in themselves and doing it (explaining this stuff to them might be near impossible)

timnosenzo
Dec 5, 2006, 03:25 PM
I tried making an app in Automater that did this, but I struggled with it and eventually gave up. I think it could be the key for you though. :)

jeremy.king
Dec 5, 2006, 03:30 PM
Are you using OS X Server?

bearbo
Dec 5, 2006, 03:30 PM
if you have apple remote desktop (hint) you can do it very easily

jeremy.king
Dec 5, 2006, 03:31 PM
I tried making an app in Automater that did this...

I used Applescript to write a handy mounting application (work and home version)

bearbo
Dec 5, 2006, 03:34 PM
you can make one applescript to mount the drive, using the specific user name, and have the user type int the password and click remember login info

and make another applescript to copy the previous applescript into their home directory, and add to the login items

that might work, if you can't get access to a copy of remote desktop

jdoyle
Dec 5, 2006, 04:27 PM
tell application "Finder"
activate
try
mount volume "afp://username:password@192.168.0.254/Production Server"
mount volume "smb://username:password@192.168.1.202/Adops"
mount volume "smb://username:password@192.168.1.202/SHARABLE"

end try
end tell

Set it as a login item and it works really well

Queso
Dec 5, 2006, 04:57 PM
jdoyle, you need to use the & tags around that to stop it rendering as smileys

Like this:-

tell application "Finder"
activate
try
mount volume "afp://username:password@192.168.0.254/Production Server"
mount volume "smb://username:password@192.168.1.202/Adops"
mount volume "smb://username:password@192.168.1.202/SHARABLE"

end try
end tell

© jdoyle 2006