<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NMSDK file permissions in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NMSDK-file-permissions/m-p/124488#M2129</link>
    <description>&lt;P&gt;I have a very similar problem while setting UNIX-style permissions via NMSDK on a regular directory/file.&lt;/P&gt;&lt;P&gt;Recently I contacted NetApp support about the issue and they referred me to the community.&lt;/P&gt;&lt;P&gt;So here I am &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an excerpt from my original support request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;In order to automatically manage home directory creation, access rights setting and cleanup of obsolete homes, we use our IdM system to remotely control the filer via the NMSDK.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;For a volume with UNIX file permissions it is not possible to set set owner/group for a given file/directory on the filer using the NMSDK (Java bindings). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;Also it is not possible to update the UNIX permission bits after file/directory creation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;At the moment it is only possible to set UNIX permission bits on directory creation using the com.netapp.nmsdk.ontap.api.file.FileCreateDirectoryRequest.withPerm() method. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;This - however - is not enough because the possibility to also set and/or update user and group is missing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;Using com.netapp.nmsdk.ontap.api.filedirectorysecurity.FileDirectorySecuritySetRequest it is only possible to set a NTFS style SecurityDescriptor which is not possible on a UNIX-style volume. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;Because UNIX-style permissions are rather simple compared with Windows ACLs I would propose to implement the methods "withPerm()" , "withUidNumber()" and "withGidNumber()" directly within the FileDirectorySecuritySetRequest Class in order to allow simple UNIX-style security updates. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 14:29:50 GMT</pubDate>
    <dc:creator>longariva</dc:creator>
    <dc:date>2016-10-20T14:29:50Z</dc:date>
    <item>
      <title>NMSDK file permissions</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NMSDK-file-permissions/m-p/95857#M1255</link>
      <description>&lt;P&gt;i have a&amp;nbsp; UNIX Qtree and i have some files under the Qtree. How do i change permission of the files using NMSDK ? , i don't see any API to change file permission on the filer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 12:16:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NMSDK-file-permissions/m-p/95857#M1255</guid>
      <dc:creator>VIJAYPOTHIREDDY</dc:creator>
      <dc:date>2014-11-04T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: NMSDK file permissions</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NMSDK-file-permissions/m-p/124488#M2129</link>
      <description>&lt;P&gt;I have a very similar problem while setting UNIX-style permissions via NMSDK on a regular directory/file.&lt;/P&gt;&lt;P&gt;Recently I contacted NetApp support about the issue and they referred me to the community.&lt;/P&gt;&lt;P&gt;So here I am &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an excerpt from my original support request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;In order to automatically manage home directory creation, access rights setting and cleanup of obsolete homes, we use our IdM system to remotely control the filer via the NMSDK.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;For a volume with UNIX file permissions it is not possible to set set owner/group for a given file/directory on the filer using the NMSDK (Java bindings). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;Also it is not possible to update the UNIX permission bits after file/directory creation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;At the moment it is only possible to set UNIX permission bits on directory creation using the com.netapp.nmsdk.ontap.api.file.FileCreateDirectoryRequest.withPerm() method. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;This - however - is not enough because the possibility to also set and/or update user and group is missing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;Using com.netapp.nmsdk.ontap.api.filedirectorysecurity.FileDirectorySecuritySetRequest it is only possible to set a NTFS style SecurityDescriptor which is not possible on a UNIX-style volume. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x23i x290 x240"&gt;Because UNIX-style permissions are rather simple compared with Windows ACLs I would propose to implement the methods "withPerm()" , "withUidNumber()" and "withGidNumber()" directly within the FileDirectorySecuritySetRequest Class in order to allow simple UNIX-style security updates. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 14:29:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NMSDK-file-permissions/m-p/124488#M2129</guid>
      <dc:creator>longariva</dc:creator>
      <dc:date>2016-10-20T14:29:50Z</dc:date>
    </item>
  </channel>
</rss>

