<?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 Changing SIDs/UIDs/GIDs safely in mixed qtrees in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Changing-SIDs-UIDs-GIDs-safely-in-mixed-qtrees/m-p/122872#M8507</link>
    <description>&lt;P&gt;We use a FAS3220 MDL filer with Data ONTAP 8.1.4P6 7-MODE as a&lt;BR /&gt;combined CIFS and NFS server with mostly mixed-type qtrees, where&lt;BR /&gt;files and folders occur with both NFSv3 and NTFS access permissions.&lt;BR /&gt;Users are authenticated via Active Directory Kerberos and Unix&lt;BR /&gt;passwd/group information is provided via an LDAP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are planning to migrate our old Active Directory domain to a new&lt;BR /&gt;domain. As part of such a domain migration, all SIDs of CIFS users&lt;BR /&gt;will change. Microsoft's domain migration tool ADMT includes a&lt;BR /&gt;"Security Translation Wizard" that (among other things) offers to walk&lt;BR /&gt;over every file tree in every CIFS/NTFS server in the domain to&lt;BR /&gt;replace in every NTFS security descriptor every old-domain SID with&lt;BR /&gt;the equivalent new-domain SID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Likewise, we sometimes find it necessary to change the UID/GID of some&lt;BR /&gt;Unix users, and then we could use a chown shell script on an NFS&lt;BR /&gt;client to replace on the filer in every inode the old UID/GID with the&lt;BR /&gt;equivalent new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of this is easy in pure Unix- or NTFS-mode qtrees, because there&lt;BR /&gt;are tools available for each to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what about our many mixed-mode qtrees, where our users keep a wild&lt;BR /&gt;mix of files and folders with either Unix- or NTFS-style security&lt;BR /&gt;intermingled?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we use chmod via NFSv3 on a mixed-mode qtree, we would destroy all&lt;BR /&gt;NTFS security data, and if we used a Windows equivalent, like&lt;BR /&gt;Microsoft's "Security Translation Wizard", we would surely destroy all&lt;BR /&gt;security information in Unix-style files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we safely translate UIDs/GIDs/SIDs in a mixed-mode qtree,&lt;BR /&gt;without changing the security type of any file or folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it even possible to do this from either an NFS or CIFS client?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can an NFS or CIFS client even see what security-style a file or&lt;BR /&gt;folder uses, to avoid changing ownership and ACLs via the wrong protocol?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any tool built onto, or available for, Data ONTAP 7-mode&lt;BR /&gt;that can safely translate UIDs/GIDs/SIDs in a mixed-mode qtrees?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 09:19:43 GMT</pubDate>
    <dc:creator>markus_kuhn</dc:creator>
    <dc:date>2017-07-14T09:19:43Z</dc:date>
    <item>
      <title>Changing SIDs/UIDs/GIDs safely in mixed qtrees</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Changing-SIDs-UIDs-GIDs-safely-in-mixed-qtrees/m-p/122872#M8507</link>
      <description>&lt;P&gt;We use a FAS3220 MDL filer with Data ONTAP 8.1.4P6 7-MODE as a&lt;BR /&gt;combined CIFS and NFS server with mostly mixed-type qtrees, where&lt;BR /&gt;files and folders occur with both NFSv3 and NTFS access permissions.&lt;BR /&gt;Users are authenticated via Active Directory Kerberos and Unix&lt;BR /&gt;passwd/group information is provided via an LDAP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are planning to migrate our old Active Directory domain to a new&lt;BR /&gt;domain. As part of such a domain migration, all SIDs of CIFS users&lt;BR /&gt;will change. Microsoft's domain migration tool ADMT includes a&lt;BR /&gt;"Security Translation Wizard" that (among other things) offers to walk&lt;BR /&gt;over every file tree in every CIFS/NTFS server in the domain to&lt;BR /&gt;replace in every NTFS security descriptor every old-domain SID with&lt;BR /&gt;the equivalent new-domain SID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Likewise, we sometimes find it necessary to change the UID/GID of some&lt;BR /&gt;Unix users, and then we could use a chown shell script on an NFS&lt;BR /&gt;client to replace on the filer in every inode the old UID/GID with the&lt;BR /&gt;equivalent new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of this is easy in pure Unix- or NTFS-mode qtrees, because there&lt;BR /&gt;are tools available for each to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what about our many mixed-mode qtrees, where our users keep a wild&lt;BR /&gt;mix of files and folders with either Unix- or NTFS-style security&lt;BR /&gt;intermingled?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we use chmod via NFSv3 on a mixed-mode qtree, we would destroy all&lt;BR /&gt;NTFS security data, and if we used a Windows equivalent, like&lt;BR /&gt;Microsoft's "Security Translation Wizard", we would surely destroy all&lt;BR /&gt;security information in Unix-style files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we safely translate UIDs/GIDs/SIDs in a mixed-mode qtree,&lt;BR /&gt;without changing the security type of any file or folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it even possible to do this from either an NFS or CIFS client?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can an NFS or CIFS client even see what security-style a file or&lt;BR /&gt;folder uses, to avoid changing ownership and ACLs via the wrong protocol?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any tool built onto, or available for, Data ONTAP 7-mode&lt;BR /&gt;that can safely translate UIDs/GIDs/SIDs in a mixed-mode qtrees?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 09:19:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Changing-SIDs-UIDs-GIDs-safely-in-mixed-qtrees/m-p/122872#M8507</guid>
      <dc:creator>markus_kuhn</dc:creator>
      <dc:date>2017-07-14T09:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing SIDs/UIDs/GIDs safely in mixed qtrees</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Changing-SIDs-UIDs-GIDs-safely-in-mixed-qtrees/m-p/132797#M8820</link>
      <description>&lt;P&gt;One trick we have found so far is applicable when renumbering the UID or GID of a Unix user:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- First assign to the Unix user a new UID/GID in the LDAP server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Then run &lt;A href="https://library.netapp.com/ecmdocs/ECMP1196993/html/GUID-A71E3CF5-DF18-4D88-8321-86FD075FCB2A.html" target="_blank" rel="nofollow"&gt;nfs nsdb flush &lt;/A&gt;on the filer to flush its naming cache&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Wait another 60 seconds on your NFSv3 client until its attribute cache has timed out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now all files in NTFS mode in the mixed qtree owned by that user will already show the new UID/GID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, you can now safely chown -R from an NFSv3 client all the other files that still show&lt;/P&gt;&lt;P&gt;the old UID/GID, as all these will be Unix-mode files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(NFSv4 is slightly more complicated, as the client doesn't see the actual UID/GID numbers.&lt;/P&gt;&lt;P&gt;For NFSv4 you have to keep in LDAP names for both the old and the new UID/GID numbers,&lt;/P&gt;&lt;P&gt;otherwise they will be mangled into nobody:nogroup. It is probably safer to do this via NFSv3.&lt;/P&gt;&lt;P&gt;We haven't been using NFSv4 ACLs yet, so no idea what to do about these.)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 09:30:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Changing-SIDs-UIDs-GIDs-safely-in-mixed-qtrees/m-p/132797#M8820</guid>
      <dc:creator>markus_kuhn</dc:creator>
      <dc:date>2017-07-14T09:30:48Z</dc:date>
    </item>
  </channel>
</rss>

