4

I know how to have the connection established at login, but I don't know if it's possible that the Finder doesn't open a window of the server root...

I've tried the "Hide" checkbox, but this doesn't help. (I'm on Snow Leopard)

8
  • Can you define 'connect automatically'? Are you talking about establishing a connection purely for authentication reasons? What's wrong with a window popping up? How is it currently set up? – Harv Apr 16 '11 at 3:26
  • Yes, that's it, an automated mounting of different servers. What is annoying is that there are a bunch of servers that I needed the users to be connected; that makes a lot of windows opened at login... – Pierre Watelet Apr 16 '11 at 6:14
  • I think you can use the mount command in terminal to mount a remote share, without having it open up in the Finder. – Harv Apr 18 '11 at 2:00
  • It's not really for me, but for all the users of my company... – Pierre Watelet Apr 18 '11 at 7:42
  • I'm not making the connection. What does it matter who it's for? – Harv Apr 18 '11 at 7:46
1

Instead of whatever method you are doing now to mount the server, I would recommend a script which is launched at login for all users.

Your best options are either a LoginHook or a launchd process installed to /Library/LaunchAgents/

You will then need to figure out the syntax for the mounting the drive.

UPDATE:

I decided I wanted to check this out further myself, and created this launchd script:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>luoma.mount.blackbook</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Users/luomat/Dropbox/bin/mount_blackbook.sh</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

which I placed at /Library/LaunchAgents/luoma.mount.blackbook.plist (owned by root)

The script can be found at http://f.luo.ma/mount_blackbook.sh (note: script will display in browser window, to download, use click-click/save-as)

0

In OS X Server, you can specify a share as an 'automount'. Is that what you had in mind?

Then, when your users authenticate against your Open Directory server, they not only see their desktop, but are automatically connected to a server sharepoint.

0

You could mount them with a simple Automator app that's added to the login items. You would just add a "Get Specified Servers" action, add the servers to it, then add a Connect to Servers action. It will mount all the specified servers without opening their windows.

When you add your servers, be sure to include the name of the share point you want to mount, something like afp://10.0.0.1/SharePoint/, otherwise, you'll get the "select the volumes you want to mount" dialog.

0

Another option (one which I haven't tried) is to disable Finder opening a new window whenever a new volume is mounted.

I believe the proper syntax is:

defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool false

defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool false

Of course this will change the behavior for more than just these particular items.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .