Skip to main content
NetApp Knowledge Base

Can I set specific default permissions of the files created on NFS shares?

Views:
261
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • NFS
  • File permissions

Answer

  • That is not possible from NetApp side
  • it is up to the NFS client and how they want to set the permissions.
  • Example file creation request by NFS client with his request of file permissions:
90 24.949875 192.168.0.61 192.168.0.201 NFS 266 V3 CREATE Call (Reply In 91), DH: 0x250f5d0c/file3
--------------------------

obj_attributes
mode: value follows
set_it: value follows (1)
Mode: 0644, S_IRUSR, S_IWUSR, S_IRGRP, S_IROTH
.... .... .... .... .... 0... .... .... = S_ISUID: No
.... .... .... .... .... .0.. .... .... = S_ISGID: No
.... .... .... .... .... ..0. .... .... = S_ISVTX: No
.... .... .... .... .... ...1 .... .... = S_IRUSR: Yes
.... .... .... .... .... .... 1... .... = S_IWUSR: Yes
.... .... .... .... .... .... .0.. .... = S_IXUSR: No
.... .... .... .... .... .... ..1. .... = S_IRGRP: Yes
.... .... .... .... .... .... ...0 .... = S_IWGRP: No
.... .... .... .... .... .... .... 0... = S_IXGRP: No
.... .... .... .... .... .... .... .1.. = S_IROTH: Yes
.... .... .... .... .... .... .... ..0. = S_IWOTH: No
.... .... .... .... .... .... .... ...0 = S_IXOTH: No
uid: no value
set_it: no value (0)
gid: no value
set_it: no value (0)
size: no value
set_it: no value (0)
atime: don't change
set_it: don't change (0)
mtime: don't change
set_it: don't change (0)

Additional Information

N/A
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.