<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Is it possible to share one directory with different root mappings to different clients? I know on my previous linux box it was easy to do but haven't found the equivalent on OmniOS.<div class=""><br class=""></div><div class="">If there were a way to have the system append to a share via the share command, I could get all the functionality I want by using separate commands like so:</div><div class=""><br class=""></div><div class=""><div class="">#read/write. prevent root access from clients</div><div class=""><br class=""></div><div class="">share -F nfs -p -o root_mapping=nobody,<a href="mailto:rw=@10.0.100.0" class="">rw=@10.0.100.0</a>/24,<a href="mailto:root=@10.0.100.0" class="">root=@10.0.100.0</a>/24 /path2share</div><div class=""><br class=""></div><div class="">#read-only and map all to root</div><div class=""><div class=""><br class=""></div><div class="">share -F nfs -p -o root_mapping=root,<a href="mailto:ro=@10.0.3.180" class="">ro=@10.0.3.180</a>:@10.0.3.45,<a href="mailto:root=@10.0.3.180" class="">root=@10.0.3.180</a>:@10.0.3.45 /path2share</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">But.. The second share command wipes out the first one :( So I try to combine them like so:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">#combined that gives me proper rw/ro and root mapped to nobody.. but, I want the ro client root users to map to root instead of nobody</div><div class=""><br class=""></div><div class="">share -F nfs -p -o \</div><div class="">root_mapping=nobody\</div><div class="">,<a href="mailto:root=@10.0.100.0" class="">root=@10.0.100.0</a>/24:@10.0.3.180:@10.0.3.45\</div><div class="">,<a href="mailto:rw=@10.0.100.0" class="">rw=@10.0.100.0</a>/24\</div><div class="">,<a href="mailto:ro=@10.0.3.180" class="">ro=@10.0.3.180</a>:@10.0.3.45\</div><div class="">  /path2share</div><div class=""><br class=""></div><div class="">It seems I can only have one root_mapping option and get an error if I stick another one in there hoping it'll parse in order of appearance. Is there somehow a way to have multiple root_mapping options based on the host or network for any single nfs export? Or does anyone have an idea of a workaround for this sort of situation?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">________________________<br class="">Michael Talbott<br class="">Systems Administrator<br class="">La Jolla Institute</div>

</div>
<br class=""></div></div></body></html>