HOW-TO: Multiple Mac Users with Mounted DS Shares using NFS

Questions regarding Mac OS X Specifically can be placed here, such as questions regarding TimeMachine, for example.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
admanb
Beginner
Beginner
Posts: 27
Joined: Tue Oct 21, 2008 5:18 pm

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using

Postby admanb » Mon Feb 13, 2012 2:48 am

One last tip...if you created any directories on the DS using an account in the same user group as the new user accounts (e.g. GID 100), so you still can't write to the directories since you aren't the owner of those directories, then you should grant write permission to those directories for the new users. An easy way to do this, which is how I did it, is to give write permission to users in the same group. Since my Mac users and the user who had created many of the directories on the DS were in the same group, I could just do the following on any directories I wanted to give the Mac users permissions to write to:

Code: Select all

chmod 775 *
EvtK
Student
Student
Posts: 63
Joined: Fri Feb 06, 2009 7:06 pm

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using

Postby EvtK » Sun Nov 18, 2012 11:17 pm

Hey admanb,

Thanks for your excellent guide. I have been staggering with exactly the same problems for some time now. First had everything on AFP/SMB. Noticed that it won't play with fast user switching. Then switched to NFS, but noticed that files were modified with user/group permissions. So went back to AFP: but I hate it :). So going for NFS again.

Can you confirm that with aligning the user / group id's between MAC and DS, it is possible to open itunes library from different user accounts.

Right now if I open library on NFS, the permission change to only read/write to 501. So when user 502 tries to open it.. doesn't work. Even when not in use by 501.

thanks.
admanb
Beginner
Beginner
Posts: 27
Joined: Tue Oct 21, 2008 5:18 pm

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using

Postby admanb » Mon Nov 19, 2012 2:19 am

Hey Loek,

My pleasure -- yeah, it hasn't been easy to get to this point, but I've been running with no problems/complaints now for a long time.

I just checked and both users in Fast User Switching can open up the shared iTunes library, pulling from the Synology's Music folder. I'm running iTunes 10.6 and I'm sure I followed some specific online instructions I found for how to set up an iTunes library on the NAS server. I checked in my DSM 3.1 settings and my iTunes service is enabled with no password.

Hope that helps!

--admanb
EvtK
Student
Student
Posts: 63
Joined: Fri Feb 06, 2009 7:06 pm

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using

Postby EvtK » Mon Nov 19, 2012 7:51 am

Thanks for your reply. Seems like you are working with the build in iTunes feature of DSM. So far: I have just made a library and added my music from the NAS to it. On AFP both users can access this library since ownership and permissions of the library are not affected (the stay to my root account of the synology). If I open it on NFS, they permissions are affected and are changed to the current user logged in on the mac (501 or 502).

Whenever you have the time: can you check what the ownership/permissions are on your library file. It should be the xml and itl file.

Otherwise I could also check that NAS feature.

Thanks!
paschulke
I'm New!
I'm New!
Posts: 1
Joined: Fri Mar 30, 2012 8:44 am

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using

Postby paschulke » Tue Dec 04, 2012 9:37 am

Thanks for this great guide!

However, I got one issue with newly created folders. Any time I create a new folder as User1 I manually have to grant write permissions for User2, although we are in the same group and we both have read/write for the parent directory, both on user- and group-level. What am I missing? Shouldn't the permissions be inherited?

I followed your guide, use DSM4 with a Mac still running on 10.6. I run the share as NFS.

Thanks in advance!
k3n85
I'm New!
I'm New!
Posts: 6
Joined: Sat Jun 16, 2012 4:00 am

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using

Postby k3n85 » Sat Dec 08, 2012 5:33 pm

Any tips on doing this in Mountain Lion as they got rid of "NFS Mounts" in disk utility?

I've followed your guide before but had to reformat my computer and on 10.8.2 now. I tried combining this with the config here: https://discussions.apple.com/thread/41 ... 0&tstart=0

But after restart, I can't get the mount to come up.
admanb
Beginner
Beginner
Posts: 27
Joined: Tue Oct 21, 2008 5:18 pm

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using

Postby admanb » Thu Nov 21, 2013 6:02 am

Were you able to resolve it? I'm now on Mavericks and it seems to still work fine. I didn't have to re-set it up. I also upgraded my Synology.

In any case, command line looks the way to go. Maybe this (http://jose-manuel.me/2013/03/how-to-mount-a-nfs-in-mac-os-x-mountain-lion/#!/single_blog) more simple approach is helpful?

If you can't sort it out, let me know and I'll see if I can give you some very specific guidance.
stubert
Trainee
Trainee
Posts: 12
Joined: Fri Nov 07, 2014 5:58 am

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using NFS

Postby stubert » Wed Jul 13, 2016 2:36 am

Well, this thread is pretty old, but still relevant, it seems! I'm interested in doing this, but am concerned about the group ID business. On my Synology system, the "users" group ID is 100, but GID 100 on my Mac systems is _lpoperator, whatever that is. So to make the GIDs align on my Macs and my DiskStation, I need to do more than just change the UID and primary GID on my Macs. It seems that GID 20 is unused on my DiskStation, so I suppose I could use that or possibly create a "staff" group on Synology with a GID of 20.

Has anyone else done something similar?
stubert
Trainee
Trainee
Posts: 12
Joined: Fri Nov 07, 2014 5:58 am

Re: HOW-TO: Multiple Mac Users with Mounted DS Shares using NFS

Postby stubert » Thu Jul 21, 2016 3:44 am

I ended up creating a new "staff" group on the Synology, changed the primary group for the various users on Synology to be that one, changed the stuff belonging to the users group on Synology to staff, then changed the GID of the staff group on my Macs to the same GID as staff on Synology, then did the rest of the stuff as described in this thread. It was pretty annoying, but seems to have worked (fingers crossed).

Return to “Mac OS X”

Who is online

Users browsing this forum: No registered users and 3 guests