Home Forums OS X Server and Client Discussion File Serving Mutliple AFP Xserve share accounts mounted on one client at the same time

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #367989
    nathanlewan
    Participant

    hello all,

    I’m having a little issue using mount_afp that I think i know the answer to, I just can’t confirm anywhere:

    [B]Here’s what I have going on: [/B]
    I have an Xserve which has 100 users created on it. Just local to the Xserve, they aren’t part of an open directory. Every users home folder is on the Xserve, and was turned into a share point.

    Students from within a lab connect to the xserve, type in their credentials, and their shared directory (their home directory on the xserve) mounts on the lab computer.

    [B]The issue is this:[/B]
    from any given lab computer, there seems to be no way to mount two separate accounts at the same time. For example, if student1’s sharepoint is mounted, and student2 wanted to mount their sharepoint on the same computer while student1’s sharepoint is stil mounted, they get an error.

    I’m assuming the issue is, once you authenticate to the Xserve using one account, it automatically assumes that since the first connection is still active then you want to connect as that user again. Since I have the permissions set up so that every user’s share point is only accessible to them (chmod 700), it only allows you to see the connections available for that first account.

    [B]Here are more specifics[/B]
    I made a small app that when you open it, it pops open a window asking you for your username and password. It then puts that info into the following script:

    mkdir /Volumes/userNAME

    mount -t afp afp://userNAME:[email protected]/userNAME
    /Volumes/userNAME

    So it mounts that one fine, but if another student comes on that computer and runs the app with their credentials while another student’s share is still mounted, I get this:

    [B]mount_afp: the mount flags are 0000 the altflags are 0020
    mount_afp: AFPMountURL returned error -5019, errno is 2[/B]

    So I guess i’d like to know if anyone has successfully mounted two afp shares of differering credentials on the same computer, where the network shares are located on the same xserve.

    Also, if it isn’t possible, i’m trying to find a way to detect if the computer is connected to the xserve, so I can pop up a window telling the user to disconnect the other share before continuing.

    Thanks for any ideas
    -nathan

    #368089
    merdrum21
    Participant

    Unfortunately AFP is a computer based connection. So this is not possible. SMB works this way.

    #368371
    nonmactype
    Participant

    I’m a non-mac type and I’ve got a semi-related issue. I did some searches and this is the closest thing that I found that resembled my problem.

    I am using netatalk on 2 different linux boxes. I want to be able to mount drives from both machines onto a mac. I have modified the AppleVolumes.default files on both linux machines to specify the mount directories and mount points. When I connect to linux machine (A) from the mac, I get the normal “Connect to Server” window and I specify the name & password which is followed by a window which lists the machine name and the list of volumes to mount. I can select one and the remote machine is mounted fine.

    The problem arises when I attempt to connect to linux machine (B) from the mac. I’m not given a “Connect to Server” window where I specify the name & password. Instead, the window which pops up lists the machine name (B) but the list of volumes to mount is that from machine A.

    If I unmount everything and start over and do the same thing, with the difference being that I connect to machine B first, I’m given the “Connect to Server” window which is followed by a window which lists the mahine name and the list of volumes to mount. This time the list is correct for machine B. If I then attempt to connect to linux machine (A), I don’t get the login window, but instead get the list of mount points that is from machine B.

    I’m a bit confused because mounting either machine A or B works fine. It’s just that when I connect to a second machine that things don’t work as expected.

    I believe that the version of netatalk installed is 1.4b2.

    thanks

    #368374
    nonmactype
    Participant

    I gave up on afp and used nfs and had things going in about 15 minutes…

    I still would like to know what caused my original problem…but for now, I am happy.

    #375224
    der_flo
    Participant

    es ist zwar nun schon eine sehr lange Weile her,
    aber ich stehe vor dem gleichem Problem…

    hat schon jemand eine Idee?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed