idmap should be started by default because mount.nfs now negotiates NFSv4 before NFSv3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I have a NFS client/server setup where both client and server are Ubuntu 10.10 (both upgraded from 10.4)
To make UID and GID mapping trivial, I've made sure that clients and server all have the same users and groups with the same IDs. This used to work fine. However now the client is always displaying 4294967294 for the UID and GID but - and here is the strange bit - if I create a file on the client it shows up on the server with the correct user and group (but on the client still with 4294967294).
I posted this originally on the forums, and decided to file this bug when 2 other people reported having the same problem since upgrading to 10.10. In both cases they were using Ubuntu as client and Solaris as server. See thread here: http://
Additional info:
/etc/exports line on the server:
data/fileserver 192.168.
/etc/fstab line on the client:
htpc:/data/
Trying to chown a file on the client gives the error "chown: changing ownership of `somefile': Invalid argument"
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: nfs-common 1:1.2.2-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Mon Oct 18 15:40:16 2010
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: nfs-utils
I can confirm this bug for our mixed environment (Solaris servers using zfs, and Ubuntu clients). It does seriously affect us, since the behaviour of file creation is quite erratic (as far as I can see). Additional observations:
1. No problems with older Solaris servers running NFS3 and NFS2 - seems to be specific to NFS4.
2. Creating dir on NFS4 share from Ubuntu 10.10:
ubuntu1010> md test; ls -l
drwxrwx--- 2 4294967294 4294967294 3 2010-10-20 09:00 test
This shows up correctly on Solaris boxes and Ubuntu 10.04 mounting the same share:
drwxrwx--- 2 martin staff 2 2010-10-20 09:00 test
3. If I change ownership on Ubuntu 10.10, strange things occur:
ubuntu1010> chown martin:staff test; ls -l
drwxrwx--- 2 martin staff 3 2010-10-20 09:00 test
ubuntu1010> cd test
bash: cd: test: Permission denied
--> This is really annoying!
Meanwhile, on the other machines:
ubuntu1004> ls -l
drwxrwx--- 2 4294967294 4294967294 3 2010-10-20 09:00 test
solaris> ls -l
drwxrwx--- 2 nobody nobody 3 2010-10-20 09:00 test
So, apparently my user info does not get transmitted to the server either, which makes changing permissions extremely hazardous.
I thus recommend rating this bug as serious.