I have a Synology NAS which, among other things, hosts a shared drive. It’s exposed via SMB & NFS. When I mount the share as NFS on my linux machine, the user IDs don’t match and permissions are all messed up.

On my old NAS, I had it set up first so when I added users to the linux machine, I picked the user IDs so they’d match, but the Synology has a different starting ID and I don’t want to renumber my users on the client.

I’m trying to keep it simple, so I’d rather not delve into the rabbit hole of LDAP, AD or Kerberos. I was debating just mounting CIFS or SMB with a generic user, but that doesn’t feel right.

Has anybody done much with user mapping in NFS4? How well does it work? Is there a simple solution? I was hoping for a drop in replacement without a lot of time lost. What do you do on your system?

Specs: 4 users, 4 laptops, 1 Apple, 2 windows, 1 linux, 2 linux servers, 1 Synology NAS. 1 overworked admin.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    1 year ago

    If you’re not using some sort of Domain mapping, then the use of the same mount by two different sharing services with different uids is going to break ownership. Doesn’t matter if it’s Synology or anything else.

    NFSv4 domain mapping solves this by having the same domain configured in client and server. That’s probably your simplest option. From memory, I do believe Synology DOES set uid for whichever user is authenticated via SMB and NFS though, so are you using two different users for these mounts by chance?

    If you don’t want to bother to setup LDAP or domain mapping, then just use SMB and that should solve the problem.

    • r0ertel@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thanks for the feedback. I plan to do some reading on NFSv4 domain mapping this weekend.

    • vext01@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      It was over a decade ago when I last looked, but all the ldap/kerberos stuff put me right off NFSv4.