Under 10.5.1 I have an external disk raid array which is physically attached via firewire to PPC G5 machine "A" and I am trying to mount it from an intel client node, machine "B" also running 10.5.1. I can share the volume just fine from finder. However, I'm trying to mount the remote drive from a shell script using mount_afp which will run at startup.
Since the "B" machine is used by several users using fast user switching, I want to mount it once at startup and have all users have read and write access to the volume. The disk has the correct permissions when mounted on Machine A, that is an ls command shows it is drwxrwxrwx or from Get Info "Read & Write" for owner, group, everyone. Get Info is also showing it as a shared folder. And lastly, when connected via finder shared "connect as" the volume will mount on machine B as the owner of whomever connected to it, but with permissions as set on Machine A. That is drwxrwxrwx or "Read & Write" for owner, group, everyone.
However, when I try to mount the volume using mount_afp either via terminal or in a shell script, the volume mounts with the uid of whomever I ran the script as, root or a user, but with privileges of drwx______. That is only the user which executed the mount command having Read & Write access to the volume and all other users being excluded. This is problematical because the users of machine B use fast user switching to change freely between respective users.
The client machine is principally accessed by young children so I don't want to be popping finder windows on login for the mount, thus my desire to have this happen as a script at machine startup. I have browsed various forums and don't seem to be able to find anyone else mentioning this problem.
Any suggestions as to how to make a remote volume accessible to all users on a client node without their having to interact with a finder window and without a finder window popping up on their desktop as a login item would do?