nfs maps to nobody:nogroup after upgrade to 12.04

Asked by Gergely Katona

After I upgraded from 64 bit 10.04 to 12.04, nfs mounting produced nobody:nogroup ownership on one set of machines. It used to work without problem under 10.04.

Here is an example of different behaviour:

ida:/> sudo mount -t nfs pippi.bcbp.gu.se:/ext/home/gergely test
ida:/> ls -ln /test/test
total 0
-rw-r--r-- 1 10001 10001 0 Apr 28 18:05 hello

hub17:/> sudo mount -t nfs pippi.bcbp.gu.se:/ext/home/gergely test
hub17:/> ls -ln /test/test
total 0
-rw-r--r-- 1 65534 65534 0 Apr 28 18:05 hello

I expect both returning 10001:10001 as UID:GUID. The two machines (ida, hub17) have identical configuration and located under the same network segment, but they belong to different domains: ida.bcbp.gu.se, hub17.lundberg.gu.se respectively. The problem occurs with tcp mount option as well. I machines having problem are under the lundberg.gu.se domain, but it may be a coincidence with a yet unknown problem. This clearly was not an issue under 10.04.

/etc/exports on pippi

/ext/home/gergely 130.241.160.192/26(rw,sync,no_subtree_check,root_squash)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
Gergely Katona
Solved:
Last query:
Last reply:
Revision history for this message
Gergely Katona (gkatona) said :
#1

Ok, my bad, I reaized that nfs4 became the new default in 12.04. When setting the option vers=3 I get the expected result. So the problem lies in the username mapping in nfs4, which I have yet to figure out.