Automounting an AFP share for multiple users
I have a Promise SmartStor 4 drive RAID array that supports SMB, AFP, NFS and FTP. All work if I manually mount the drive, however I can't seem to get the drive to automount at boot time.
I tried adding it to the "login items" as some have suggested, however then each user gets a separate mount at /Volumes/PUBLIC-1, /Volumes/PUBLIC-2, etc. I need the mount point to be the same for each user though so this doesn't work for me.
I also tried adding the share to /etc/fstab as follows:
smartstor.local:/PUBLIC/Features /Volumes/Features url automounted,url==afp://USER:PASSWORD@smartstor.local:/PUBLIC/Features 0 0
however when I issue the automount command (as root) I get the following:
sh-3.2# automount -vc
automount: /net updated
automount: /home updated
automount: /Volumes/Features updated
automount: no unmounts
This seems to work, however if I log into a different account and then go to /Volumes I see the "Features" folder with the red circle-minus sign on it indicating I have no access. When I look at the permissions I see they are as follows:
drwx------@ 6 root wheel 264 Apr 3 13:37 Features
which makes sense that I wouldn't be able to access them from another account. Additionally, even though the volume shows up under /Volumes it doesn't show up in the Finder.
I guess what I want to know is if I'm going about this all wrong. What I want it for the network share to work like a Firewire or USB drive in that it will be always connected and available to all users at all times. It's important that it have the same mount point as it's main use is for storing movies that will be accessed by Plex (XBMC-like media center)
I need it to be automatic as others in my household don't know how to mount a drive and so I set up a non-admin account for Plex to run in that they can use.
Ideally I'd like to have the drive read only for all users other than mine, however since this is on a home network I don't really even need any security. It would be fine if the drive was read/write for all users.
From searching around various sites it seems that this is one area of the OS that really needs some simplification. If anyone can provide a link that explains how to accomplish this it would be greatly appreciated.
I tried adding it to the "login items" as some have suggested, however then each user gets a separate mount at /Volumes/PUBLIC-1, /Volumes/PUBLIC-2, etc. I need the mount point to be the same for each user though so this doesn't work for me.
I also tried adding the share to /etc/fstab as follows:
smartstor.local:/PUBLIC/Features /Volumes/Features url automounted,url==afp://USER:PASSWORD@smartstor.local:/PUBLIC/Features 0 0
however when I issue the automount command (as root) I get the following:
sh-3.2# automount -vc
automount: /net updated
automount: /home updated
automount: /Volumes/Features updated
automount: no unmounts
This seems to work, however if I log into a different account and then go to /Volumes I see the "Features" folder with the red circle-minus sign on it indicating I have no access. When I look at the permissions I see they are as follows:
drwx------@ 6 root wheel 264 Apr 3 13:37 Features
which makes sense that I wouldn't be able to access them from another account. Additionally, even though the volume shows up under /Volumes it doesn't show up in the Finder.
I guess what I want to know is if I'm going about this all wrong. What I want it for the network share to work like a Firewire or USB drive in that it will be always connected and available to all users at all times. It's important that it have the same mount point as it's main use is for storing movies that will be accessed by Plex (XBMC-like media center)
I need it to be automatic as others in my household don't know how to mount a drive and so I set up a non-admin account for Plex to run in that they can use.
Ideally I'd like to have the drive read only for all users other than mine, however since this is on a home network I don't really even need any security. It would be fine if the drive was read/write for all users.
From searching around various sites it seems that this is one area of the OS that really needs some simplification. If anyone can provide a link that explains how to accomplish this it would be greatly appreciated.
Mac Pro 2.8GHz 8 core, Mac OS X (10.6.7)