Sync NFS server UIDs with clients?
Hi! I have a file server I use as a cloud, saving all documents and media on it. On the server I'm running Transmission as well which saves all downloaded files as a group which my user and it are both members of. This worked well in Samba when my clients were running Windows.
Now that my clients are running Arch and I'm trying to use NFS this doesn't work, all files created by Transmission show up as owned by "nobody : nobody". I've understood that I need to match the users and groups on the clients with the server but haven't been able to figure out how I'm supposed to do that? I guess I could make Transmission save files as 777, but that seems really unsecure and not "The Arch Way" to do things. Am I using NFS the wrong way?
Thanks for any help! :)
About this post
- Posted
- Archived
- Score
- 10 · 100% up
- Kind
- Text
- ID
- 215ime
9 comments
That's where LDAP fits in to give you centralized user/group info. You can also authenticate against it so your passwords are centralized, but kerberos is better than LDAP for the auth piece.
Thanks, I'll look into that!
You're using NFSv4 right?
I did this somewhat recently myself. I have FreeNAS (FreeBSD) host NFSv4 on ZFS. Getting it all working is sadly complicated.
I'd take a look at idmap.conf and core/nfsidmap. Enable the systemd service rpc-idmapd.service.
Can't remember much else and my bash history doesn't seem to indicate anything else.
This doesnt answer your question but it is pretty bad security practice to expose nfs to the Internet. I would use something like sftp (ftp over ssh) instead.
I'm tunneling nfs over encrypted vpn as I had vpn set up already. Is this discouraged?
No, if it's over vpn it should be fine as long as your vpn implementation is secure