Skip to content

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! :)

10 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
10 · 100% up
Kind
Text
ID
215ime

Author

2
posts
23
comments
1
media
View profile

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.

3 points

Thanks, I'll look into that!

1 points

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.

2 points

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.

2 points

I'm tunneling nfs over encrypted vpn as I had vpn set up already. Is this discouraged?

1 points

No, if it's over vpn it should be fine as long as your vpn implementation is secure

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.