Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SlugBlanket

macrumors regular
Original poster
Mar 5, 2011
130
7
As the title says, there are 3 users in my home and we currently all use the same mac. (2nd mac awaiting the possible Mac Pro update next year). I've recently also installed a NAS (Synology DS1511+).

At present we each have access to the same shared folders on the NAS and these are mounted by way of a simple applescript when each user logs in on the mac.

Code:
tell application "Finder"
	try
		mount volume "afp://192.168.0.2/data/"
		mount volume "afp://192.168.0.2/music/"
		mount volume "afp://192.168.0.2/photo/"
		mount volume "afp://192.168.0.2/video/"
		mount volume "afp://NAS (Time Machine)._afpovertcp._tcp.local/Time Machine Backups"
	end try
end tell

This works perfectly well when only 1 user is logged in on the mac at any one time. We don't NEED to use this script; Finder by default always shows the NAS in the sidebar under the Shared section and it's a simple thing to click on it and then access the shared folders that way, but that is a little clunky. By using the script it allowed us to drag the individual shared folders (disk icons) into the sidebar and have permanent shortcuts to the data. That also meant that we could set Finder preferences to NOT show connected servers on the desktop, giving a less cluttered desktop.

The issue we have occurs when we switch user on the mac with another user still logged in.

If user 1 is still logged in on the mac and has a shared folder (e.g. photo) accessed on the NAS, user 2's sidebar shortcut for that folder will not work, instead they will get a permission denied message. By setting Finder preferences back to show connected servers on the desktop, user 2 will see that shared (photo) folder icon on their own desktop with a stop sign indicating access is denied. User 2 must then go to Finder and locate the NAS in the sidebar, under the Shared section, click on the NAS and see the list of available folders. Clicking on the photo folder will reveal the data as expected but now a drive icon named photo will appear on the desktop. So we have gone from having a clean desktop with handy sidebar shortcuts, to a very cluttered desktop with 10 additional icons (5 denied shares and 5 allowed shares) for user 2, and the sidebar shortcuts being useless. The default sidebar shortcut to the NAS in the shared section still works as expected though.

I understand why permission is denied. The system has set up a default mount point of /volumes/photo for the first user. When user 2 connects the mount point for them to the same share on the NAS is /volumes/photo-1. Rather than mapping the destination folder (photo) to the sidebar shortcut, the system maps the mount point to the sidebar shortcut.

Is there any way that we can have permanent hard-coded mount points for each user so that we have the same sidebar short-cut functionality when multiple users are logged in on the mac as we do when just a single user is logged in? If so how do I implement it ?

From my research I'm guessing that I will have to edit some configuration files for automounter but any help would be appreciated.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.