UNSOLVED

sushobhan

updated

9 years ago

S

sushobhan

14 Posts

0

4306

April 4th, 2018 22:00

How to export a NFS share with these options - *(rw,sync,anonuid=1111,anongid=1111,all_squash)

I need to export a NFS share with these options - *(rw,sync,anonuid=1111,anongid=1111,all_squash) in a VNX. Please guide me.

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    3484

    0

    Posted April 5th, 2018 05:00

    please see the VNX file reference manual or the NFS pdf manual available from support.emc.com

    or "man server_export"

  • sushobhan

    14 Posts

    3484

    0

    Posted April 5th, 2018 06:00

    Thanks for your reply.

    I did look at "Configuring NFS on VNX" & "VNX® Command Line Interface Reference for File" which has man of server_export before posting this query.

    In the manpage of server_export, I see the following in "option" section -

         anon=

         If a request comes from an unknown user, the UID should be used

         as the effective user ID. Root users (UID =0) are considered

         "unknown" by the NFS server unless they are included in the

         root option. The default value for anon= is the user

         "nobody". If the user "nobody" does not exist, then the value

         65534 is used.


         Caution: Using anon=0 is not recommended for security concerns.


    But I do not see any reference of group-id.


    Also, I could figure anything for "sync" and "all_squash" NFS options.


    It will be very helpful if you give me some guidance on this matter.


  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    3484

    0

    Posted April 5th, 2018 07:00

    there is no anongid option or all_squash available on VNX

    we dont have an async option - so its always sync

  • sushobhan

    14 Posts

    3484

    0

    Posted April 5th, 2018 22:00

    Thanks for your reply.

    When I use "server_export server_2 -Protocol nfs -option anon=1111,rw=10.10.10.10/21:10.10.10.11/21 /NFS_for_my_App", my application is complaining that NFS server exposed uid:1111 and gid:0.

    Is there a workaround by which I can export the NFS shared with gid=1111. My app is expecting a NFS share exported with that gid?

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    3484

    1

    Posted April 6th, 2018 07:00

    not on our (NFS server side)

    you could try:

    - remapping gid on the NFS client

    - use the setgid bit on the directory - that will make a files created there owned by the same group as the dir

    - change VNX to Unity - next Unity OE version will have a anongid option available

    - change your app