Package: nfs-user-server
Version: 2.2beta47-22

When I use the map_static option, to map uid's and/or gid's, the id's are squashed to nobody or nogroup.

/etc/exports:
/qnx 10.0.0.0/255.255.0.0(rw,sync,map_static=/etc/nfs/qnx.map)

/etc/nfs/qnx.map:
# mapping for qnx clients
#       remote  local
uid     0       2500
gid     0       2500

If I change /etc/exports to a line which exactly matches one client machine and additionally this client is described by its fully qualified DNS name, the mapping works for uid's.
/etc/exports:
/qnx client0.esd(rw,sync,map_static=/etc/nfs/qnx.map)

The gid's still do not work, because of a bug in the function lgid():
wrong: if ((gid == 0 && mountp->o.root_squash)...
correct: if ((retgid == 0 && mountp->o.root_squash)...

If this is patched, the mapping is working also for gid's.

We use:
Linux version 2.6.15-1-686-smp (Debian 2.6.15-8) ([EMAIL PROTECTED]) (gcc version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)) #2 SMP Mon Mar 6 15:34:50 UTC 2006

-Michael







--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to