On Thursday, August 04, 2011 02:53:28 PM walt wrote:
> I'm trying to be a good gentoo netizen by nfs-sharing /usr/portage between
> my three local gentoo machines, and failing :(
> 
> After weeks of fiddling, I discovered today that my problems come from
> using a 32-bit machine to serve my two 64-bit NFS clients(!)
> 
> (I'll mention up front that NFSv3 works perfectly -- only NFSv4 is bad.)
> 
> For reasons I don't know, the 64-bit client machines mount the 32-bit
> NFSv4 share with UID/GID 0xffffffe, which won't let even root write to
> the rw share.
> 
> I googled an old thread mentioning that 0xffff is decimal 65534, a UID
> traditionally assigned to the user 'nobody'.
> 
> Can anyone else reproduce my problem, or give a hint how to work around
> it?

This is how I do this:
** (On server)
~ $ cat /etc/exports 
/usr/portage            
*(rw,sync,all_squash,anonuid=250,anongid=250,no_subtree_check)

~ $ id portage
uid=250(portage) gid=250(portage) groups=250(portage)
**

** (On client)
~ $ cat /etc/fstab
server:/usr/portage                 /usr/portage            nfs     
tcp,nodev,nosuid        0 0
**

I stripped non-related parts from the above and the "exports" and "fstab" 
lines should be on a single line.

The bit in the exports-file will force all access to "/usr/portage" to be 
linked to the uid and gid of portage. (Change the values if your portage-user 
has a different uid and/or gid)

I have also opened it to all servers (the * at the beginning of the line) with 
a firewall limiting access.

> (This list is so quiet today I'm wondering if gmane.org is down.)

Or simply busy? :)

Hope this helps,

Joost

Reply via email to