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.

  • vividspecter@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    il y a 1 an

    but there’s no NFS on Windows anyway

    There is, although only the client and only v3 support.

    • dblsaiko@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      il y a 1 an

      True. I knew I should have left that as “NFS 4” because someone would comment this. From what I’ve read (never used it), NFS 3 is very different to 4 and also just kind of not worth using, especially just for Windows, since it has no security at all.

      • vividspecter@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        il y a 1 an

        It’s enough if you just need access in a VM or over a lan (depending on your threat model) but agreed.