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.

  • kylian0087@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Yeah which frankly gets annoying fast when dealing with multiple users. As you need to remember the UIDs of all the users and match them potentially on all systems.

    A solution to this problem is using active directory or if it is only for Linux devices FreeIPA. Which isn’t as bad as it sounds. It even simplifies it if you ask me. More centralized management. It is a onetime effort to setup correctly then just keeping it in check.