How to make OS X connect to a network drive on login...

Discussion in 'macOS' started by TrumanApple, Dec 1, 2006.

  1. TrumanApple macrumors member

    Joined:
    Jan 2, 2005
    #1
    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?
     
  2. roland.g macrumors 603

    roland.g

    Joined:
    Apr 11, 2005
    Location:
    One mile up and soaring
    #2
    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.
     
  3. Queso macrumors G4

    Joined:
    Mar 4, 2006
    #3
    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.
     
  4. TrumanApple thread starter macrumors member

    Joined:
    Jan 2, 2005
    #4
    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)
     
  5. timnosenzo macrumors 6502a

    timnosenzo

    Joined:
    Jun 21, 2004
    Location:
    ct, us
    #5
    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. :)
     
  6. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
  7. bearbo macrumors 68000

    bearbo

    Joined:
    Jul 20, 2006
    #7
    if you have apple remote desktop (hint) you can do it very easily
     
  8. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #8
    I used Applescript to write a handy mounting application (work and home version)
     
  9. bearbo macrumors 68000

    bearbo

    Joined:
    Jul 20, 2006
    #9
    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
     
  10. jdoyle macrumors member

    Joined:
    Jul 29, 2004
    #10
    This works a treat. Paste into script editor and save as app

    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
     
  11. Queso macrumors G4

    Joined:
    Mar 4, 2006
    #11
    jdoyle, you need to use the [plain] & [/plain] 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
     

Share This Page