Re: UID/GID mapping system

From: Pavel Machek
Date: Fri Mar 12 2004 - 15:50:56 EST


Hi!

> Here's a simple, typical problem:
>
> I want to connect a Linux laptop to a network with existing NFS/NIS
> infrastructure in place and mount and use, say, an NFS home directory.
> Unfortunately, the UID mappings differ between the existing
> infrastructure and my laptop. For example, all the files in my NFS
> directory are all owned by uid=45067 gid=102, but my user and default
> group on the laptop are 1000 and 1000 respectively.
>
> I don't adminsiter the NFS server; I can't ask the administrator to
> set up a server-side mapping system just for my benefit. But, I *can*
> convince the administrator to add:
>
> /home/b/u/buhr mymachine(squash_uids=0-45066,45068-65535,squash_gids=0-100)
>
> to his exports file.

Well... teach nfsd to accept

...squash_uids=...,map_uid=10000:45067,...

Pavel
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/