Results 1 to 8 of 8

Thread: Netatalk problem: Only one user can see the shares

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Beans
    22

    Unhappy Netatalk problem: Only one user can see the shares

    Hello everyone.

    I'm using a Ubuntu Desktop 10.04 32-bit machine as my file server. It is sharing a few folders stored on a USB NTFS drive using Netatalk. The client machine is running MacOS 10.6.4.

    I have only one user on the Ubuntu machine, but the Mac machine has two users. I wish to share the same network share between the two Mac users, while both are logged in (they switch between one another without logging the other one out).

    I created a login item on both Mac user accounts to automount the Ubuntu shared folder and used the same Ubuntu user account for authentication on both Mac accounts.

    This is the problem:
    When the first Mac user logs in, the shared folder automatically mounts with no problems. However, when the second user switches to their account (without logging out the first user) the automount mounts the folder with a red "No Access" sign on the folder. The only way to resolve it is to eject the mount and manually remount.

    This is not the end of the world, but I would like to resolve this issue if possible, so that the users get a smoother experience.

    The way I tried to resolve this:
    I thought that maybe Netatalk does not allow the same user to connect more than once from the same IP, so I set up an additional user on the Ubuntu machine. However, when I connect to the Ubuntu server using the new user for authentication, the only share available for the user is their home folder. The other shares are not available.

    I therefore tried to configure permissions using the AppleVolumes.default by explicitly giving all users the "allow" permission for all shares and restarting the Netatalk service, however the new user still has access to nothing but their home folder.

    How can I share the same shared folder between multiple users?

    Thanks in advance.

  2. #2
    Join Date
    Mar 2009
    Beans
    22

    Re: Netatalk problem: Only one user can see the shares

    Guys if anyone can help me with this one I'd greatly appreciate it.
    I tried sharing the folder using Samba but I'm experiencing a similar issue where only one user has access to the shares.

    Please help!

  3. #3
    Join Date
    Jan 2008
    Location
    Netherlands
    Beans
    2,930
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Netatalk problem: Only one user can see the shares

    Linux on your Apple Mac │ iLinux
    http://mac.linux.be
    http://www.mintppc.org

  4. #4
    Join Date
    Jun 2008
    Location
    Berlin
    Beans
    784
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Netatalk problem: Only one user can see the shares

    Quote Originally Posted by Gantlett View Post
    I tried sharing the folder using Samba but I'm experiencing a similar issue where only one user has access to the shares.
    This means that it should be a network configuration issue. Do you experience this problem with the same user, or just with the second one you log in?
    PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
    PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader

  5. #5
    Join Date
    Mar 2009
    Beans
    22

    Re: Netatalk problem: Only one user can see the shares

    Allow me to clarify:

    I'm managing the system with the user that was created during the Ubuntu system install process. This user (let's call it user1) can share and view shares with no problems, SMB and AFP.

    However, the additional user I've added, user2, cannot view any AFP shares other than their own home folder. Thanks.

  6. #6
    Join Date
    Feb 2009
    Beans
    28
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Netatalk problem: Only one user can see the shares

    I've got this exact same problem. I suspect that if I were to log into "user2"'s account on the ubuntu side and to mount the drives there then user2 would be able to see all the folders but user1 wouldn't.

    Did anybody else figure this out?

  7. #7
    Join Date
    Apr 2006
    Location
    Orlando, Florida
    Beans
    36
    Distro
    Ubuntu

    Re: Netatalk problem: Only one user can see the shares

    Sorry to be un-timely here, but I may be able to offer some help for future reference. SMB and AFP being totally different, I can "see" a common thread that may be a source of the issue - group membership.

    Both protocols need to authorize users for access (obviously). From what I've seen in this thread it sounds as though the user/group ownership conflicts. We're running a production 10.04.2 server with both protocols.

    In our situation, to minimize permission issues, all shared files and directories are owned by a "common" user and the group "users". In our case each user is a member of the "users" group. File permissions are 0775 on everything in the shares.

    To maintain consistency of permissions and group ownership we've done the following:

    Netatalk AppleVolumes.default entry;
    /directory/to/share "ShareName" allow:@users rwlist:@users options:usedots,upriv perm:0775 veto:/lo

    Samba Share;
    Our general section includes "security = user".
    [ShareName]
    writable = yes
    path = /directory/to/share
    force group = users
    guest ok = no
    create mask = 0775
    force user = user1
    comment = Shared Files
    directory mask = 0775

    As you can see the above configuration creates new files/directories forcing the group in both protocols to be "users". Creation/perm mask is 0775. In the case of Netatalk only members of the "users" group may access. Prior to adding "allow:@users rwlist:@users" we had similar odd behaviour to what's been described previously in this thread.

    Using the above config we provide common share points to Mac (AFP or SMB) and Windows (SMB) users.

    One caveat with the config is file naming compatiblity. But that's a discussion for another thread.

    HTH

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •