Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 May 2014 19:53:59 -0700
From:      Craig Yoshioka <craigyk@me.com>
To:        Rick Macklem <rmacklem@uoguelph.ca>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: problems with chown as root on nfs4 export
Message-ID:  <892DB38A-0F20-439F-828A-27F195C8EEBD@me.com>
In-Reply-To: <9ADAA4E7-9EA4-48C3-B039-7895E7FF82BE@me.com>
References:  <1901966946.615625.1398991683337.JavaMail.root@uoguelph.ca> <9ADAA4E7-9EA4-48C3-B039-7895E7FF82BE@me.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> From what I was told, trying a uid string is only a fallback scenario for the client.  Instead, it turns out root (uid 0) was improperly triggering a conditional that mapped it to nobody on maproot exports.  I just tried a fixed version and it works now.

Nevermind, I spoke too soon.  I hadn’t properly cleared the effect of setting:

echo N >/sys/module/nfs/parameters/nfs4_disable_idmapping

but just to confirm, setting the above in linux clients does cause their SETATTR calls to pass the username instead of the uid.  Unfortunately, this setting is not the default.


>> 
>>> 
>>> 
>>> 3. I can’t rule out misconfiguration.  but I’ve configured as
>>> identically as I could, and tried a lot of small vairations. these
>>> are my current settings (the pipefs settings are the distro
>>> defaults)
>>> 
>>> _______________________________________________
>>> freebsd-stable@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>>> To unsubscribe, send any mail to
>>> "freebsd-stable-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?892DB38A-0F20-439F-828A-27F195C8EEBD>