this might not answer your question but..

anon=root means that any user that tries to mount that is unknown to the server will be treated as if they are root and root from another system will be given the permission of nobody.. what you want is root=someuser.. In nfs root from another system is almost always seen as hostile by default.


On 6/15/17 1:47 PM, Ian Kaufman wrote:
Are you using NFSv4? Are all machines using the same idmap domain?

Ian

On Thu, Jun 15, 2017 at 11:18 AM, Andries Annema <an3s.ann...@gmail.com <mailto:an3s.ann...@gmail.com>> wrote:

    Hi Özkan,

    The first thing that comes to mind is "no_root_squash" and, based
    on your example setting with options like "anon=root", I assume
    this option can be set as well on OmniOS with the "sharenfs" setting.

    Maybe these will help:
    
https://serverfault.com/questions/364613/centos-6-ldap-nfs-file-ownership-is-stuck-on-nobody
    
<https://serverfault.com/questions/364613/centos-6-ldap-nfs-file-ownership-is-stuck-on-nobody>

    
http://www.linuxtopia.org/online_books/rhel6/rhel_6_storage_admin/rhel_6_storage_s2-nfs-security-files.html
    
<http://www.linuxtopia.org/online_books/rhel6/rhel_6_storage_admin/rhel_6_storage_s2-nfs-security-files.html>


    Disclaimer: I am not an expert on NFS! Far from it. The above
    suggestion is based on some personal experience where I needed
    that "no_root_squash" option (although that was with some Linux
    distro's), and some Google-fu. With that said, I am not sure if it
    adds a security threat or something.

    Anyway, my two cents.

    Regards,
    Andries


    On 2017-06-14 17:44, Özkan Göksu wrote:
    Hello.

    I have a nfs share and zfs settings like= "sharenfs anon=root,rw=* "
    When i mount it from Centos, owner changes as nobody. (yes im
    root on Centos)
    But in omnios or ubuntu i see as root when i mount it.

    What is the cause of this problem?




    _______________________________________________
    OmniOS-discuss mailing list
    OmniOS-discuss@lists.omniti.com
    <mailto:OmniOS-discuss@lists.omniti.com>
    http://lists.omniti.com/mailman/listinfo/omnios-discuss
    <http://lists.omniti.com/mailman/listinfo/omnios-discuss>


    _______________________________________________
    OmniOS-discuss mailing list
    OmniOS-discuss@lists.omniti.com
    <mailto:OmniOS-discuss@lists.omniti.com>
    http://lists.omniti.com/mailman/listinfo/omnios-discuss
    <http://lists.omniti.com/mailman/listinfo/omnios-discuss>




--
Ian Kaufman
Research Systems Administrator
UC San Diego, Jacobs School of Engineering ikaufman AT ucsd DOT edu


_______________________________________________
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss

_______________________________________________
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss

Reply via email to