UNSOLVED

sergio31

updated

3 years ago

S

sergio31

1 Rookie

3 Posts

0

1505

December 30th, 2021 07:00

How to export a nfs share with all_squash option on Unity

Hi,

I would  like to export a nfs share with all_squash option . Version Unity used: 5.1.1

Regards

  • Dell-DylanJ

    6 Operator

    2924 Posts

    955

    0

    Posted December 30th, 2021 13:00

    Hello,

     

    I would recommend reviewing this document for questions regarding NFS shares and Unity.

     

    https://dell.to/3HpHfz2

  • cadencep45

    4 Apprentice

    318 Posts

    944

    0

    Posted December 31st, 2021 00:00

    re above

     

    export options are

    none

    read

    read/write

    read-only, allow root

    read/write, allow root

     

    where it says allow root = no ( root ) squash

    where is does not say allow root = ( root ) squash which is I think the all_squash  option you are after. I would suggest set it up and test to it works as you expect.

  • sergio31

    1 Rookie

    3 Posts

    942

    0

    Posted December 31st, 2021 02:00

    Hi,

    Thanks for the documentation but Y didn't  find the solution to my problem while it's easy to configurate on a nfs linux server or a netapp equipement

    Regards

  • sergio31

    1 Rookie

    3 Posts

    942

    0

    Posted December 31st, 2021 02:00

    Hi,

    Y tried but not.

    'allow root =no'  means root squash: only the client user root is  seen as nobody on the nfs share, not all the user (what I am looking for)

    Regards,

     

  • thomas.sec

    1 Rookie

    2 Posts

    153

    0

    Posted July 25th, 2023 07:00

    Hello

    I am facing the same limitation.

    How can we set export option "all_squash" ? I can't find this parameter on dell unity.

     

    Unity version 5.2.2

     

    Best regards

  • cadencep45

    4 Apprentice

    318 Posts

    127

    0

    Posted July 26th, 2023 10:00

    by default its all squash, you have explicitly export to hosts with no squash. This is I suspect the desired default, i.e. export with least privilege's 

  • thomas.sec

    1 Rookie

    2 Posts

    114

    1

    Posted July 27th, 2023 02:00

    Hello, thank you for your answer. Unfortunatly, I don't really understand your solution.

     

    I tried the following parameters:

    read/write : root user write with anon uid/gid, others users write with their uid/gid

    read/write allow root: root user write with 0:0, others users write with their uid/gid

     

    all_squash option usually works like that :

    root user write with anon uid/gid, others users write with anon uid/gid too

    source: man page (https://linux.die.net/man/5/exports)

     

    How can we set export option "all_squash" ? I can't find this parameter on dell unity.

     

    Best regards