<p dir="ltr">Have you tried to set params anonuid,anongid to the desired uid & gid in /etc/exports ?</p>
<div class="gmail_quote">El 30/10/2012 21:18, "Jason Keltz" <<a href="mailto:jas@cse.yorku.ca">jas@cse.yorku.ca</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a  FreeBSD 9.1RC2 server exporting an NFS v4 filesystem (a home directory actually) that I want to mount under my rhel63 nfs client.<br>
nfsuserd is running on FreeBSD (idmapd equivalent for Linux), idmapd is running on rhel63 and both are configured with the same domain and translation of nfsswitch.<br>
Both systems share the same users and groups in /etc/passwd and /etc/group.   Sure, there are some additional users and groups on either system, but the real users I care about are in both with the same uid and gid.  There are no duplicate entries.<br>

<br>
On Rhel6.3, I can mount the nfs v4 share from the FreeBSD server, and it shows up as vers=4, but all the files appear as nobody:nobody, even though they are all owned by user jast7 and group "zfstest" on the FreeBSD nfs server.<br>

Aha! That's a simple ID mapping problem, you say?  Well, it's probably an ID mapping problem, but not sure that it's so simple....  The exported directory is owned by jast7, group zfstest.  If the exported directory is set to mode 700, and user jast7 on the rhel63 client tries to write to the directory, he can write, and yet, if another user "jas" on the rhel63 client tries to write to the directory, he cannot...   Hmmm???<br>

So I continue ... when jast7 writes on the rhel63 client, the files show up as "nobody:nobody" on the rhel63 client, but under freebsd shows up as "jast7:zfstest" as should be the case.<br>
On the other hand, if I make the exported directory mode 707, then user "jas" on the rhel63 system can indeed write a file.   This file shows up as "jas:nobody" on the rhel63 system, and shows up as "jas:zfstest" on the FreeBSD server.<br>

<br>
>From FreeBSD passwd:<br>
<br>
jast7:x:14975:1001:jas test 7:/cs/home/jast7:/bin/false<br>
jas:x:1004:1000:Jason:/cs/<u></u>home/jas:/cs/local/bin/tcsh<br>
<br>
>From FreeBSD group:<br>
<br>
zfstest:*:1001:<br>
tech:*:1000:tdb<br>
<br>
>From Linux passwd:<br>
<br>
jast7:x:14975:1001:jas test 7:/cs/home/jast7:/bin/false<br>
jas:x:1004:1000:Jason:/cs/<u></u>home/jas:/cs/local/bin/tcsh<br>
<br>
>From Linux group:<br>
<br>
zfstest:*:1001:<br>
tech:*:1000:<br>
<br>
Just to be sure, I have tried unmounting, "service rpcidmapd restart", then mounting the share, and no difference..<br>
<br>
Any ideas?<br>
<br>
Jason.<br>
<br>
______________________________<u></u>_________________<br>
rhelv6-list mailing list<br>
<a href="mailto:rhelv6-list@redhat.com" target="_blank">rhelv6-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhelv6-list" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/rhelv6-list</a><br>
</blockquote></div>