Jail user access to files shared via NFS best practices?

Status
Not open for further replies.

dopey

Cadet
Joined
Feb 3, 2016
Messages
5
So I have a use case where I'd like to be able to create a jail (in particular syncthing) to sync files to a directory in freenas and then later from a different system manipulate the files via NFSv4 mounts.

I don't need the security of krb5 (sec=sys is good enough for my purposes) but the problem I'm running into is the uid/gid of the syncthing jail user doesn't match the uid/gid of my other NFS clients systems.

Is there a way to customize the UID/GID of the process running inside the jail so it matches the same uid/gid of the user that needs to manipulate the files? Otherwise I haven't figured out how set up the permissions short of mapall - which i don't want.

My current solution is syncthing is running in a VM configured as a user with the same uid and it's writing to the freenas share via NFS but it'd be nice to eliminate the VM overhead.
 
Status
Not open for further replies.
Top