Re: Help with user ID mapping?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 09, 2018 at 11:07:32AM -0700, mrsvd1v4rgo1@xxxxxxxxxxx wrote:
> I'm trying to get a NFS4 client & server id mapping working right.
> 
> My client mounts to a couple of NFS4 servers.
> 
> I want to get it setup so that for just ONE of them, files added to or
> modified on the server BY my local client, logged in EITHER as my user
> or root, get written with a specific user/group ==  "nobody:users"

You should be able to do that by just adding "all_squash" to the export
options in /etc/exports for that one client.

> I'm pretty sure that all the magic is done with idmapd config.

This is a common source of confusion.  NFSv4 idmapping only deals with
names and IDs that are sent in NFSv4 protocol messages--when setting or
getting file owners and groups, or ACLs.

It's the underlying RPC protocol that tells the server who is performing
a given RPC.  That always uses numeric IDs or krb5 principals, and isn't
affected by anything in idmapd.conf.

--b.



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux