<div dir="ltr"><div>Changing the UID/GID to be consistent across the nfs clients is probably the best plan.</div>You might want to consider using the usermod (1) command to do the heavy lifting here.<div>Look especially at the -u and -g options.</div><div><br><div>If you have several clients then maybe you want to script the work.  For very casual multi-host things I might use ssh in a loop or pssh.</div><div>I&#39;m also a fan of ansible for managing config across a community of systems but front loading this task with that learning might be too much.</div><div><br></div><div>chris</div><div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 15, 2016 at 1:57 AM, Yaverot <span dir="ltr">&lt;<a href="mailto:Yaverot@computermail.net" target="_blank">Yaverot@computermail.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m finally making the transition away from my home OpenSolaris fileserver which I setup apparently in June 2009.<br>
The new system is FreeBSD 10.2<br>
I&#39;ve successfully done a zfs send of all the data from the old server.  Now I&#39;m trying to set up sharing from it.<br>
I&#39;m also taking this opportunity to switch from  cifs/samba to NFS(4), since neither is the &quot;just flip the magic switch&quot; on any open source operating system, but NFS is supposedly easier &quot;once you&#39;ve done it right the first time&quot;.<br>
<br>
So I believe I&#39;m now getting a &quot;successful&quot; mount, but can&#39;t read anything due to uid/gid mismatch. It could still be something else, but the mount command is not coming back with failures anymore.<br>
On the old fileserver, the shared data was all written yaverot:yaverot (501:501), so it was received as 501:501 on the new server.<br>
On the new server I created default ids and everything in the home folder is yaverot:yaverot (1001:1001) - the only data of value attached to this user is its ~/.ssh/ and that it is part of wheel.<br>
<br>
for my clients (running Gentoo)<br>
  yaverot:users (1000,100)<br>
luckily, it appears they&#39;re all the same<br>
<br>
So I&#39;m looking for the easiest/simplest solution that will work. I think it is changing my user on the new server to be 501:501 and then allow NFSv4 to do conversion like it supposedly does is easiest, which will work when the system knows the &quot;correct&quot; uid/gid for my user.  But I don&#39;t know if that feature actually works.<br>
<br>
Second best solution is to see if there&#39;s some setting I could put on the zfs recv such that it writes the uid/gid for the existing user on the system instead of the one in the stream and redo the two-day send/recv.  I doubt such a thing exists. Obviously, I can&#39;t simply chown the live data to the uid/gid given on the new server as that wouldn&#39;t also update the snapshots (making them worthless).<br>
<br>
Third best I think is figuring out samba, since this wasn&#39;t a problem at all with it - just that the server was stuck at a version of the protocol that&#39;s now considered obsolete. (As well as other obsolete versions, like openssh)  I&#39;ve just heard it is hard compared to NFS.<br>
<br>
---<br>
Assuming my first idea is best, do I fix the uid/gid by editing /etc/passwd then doing a recursive chown on its home directory; or do I rename the user (3 files in /etc ?), and create a new user with the correct uid/gid?<br>
_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" rel="noreferrer" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
</blockquote></div><br></div>