<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Active Directory, Cluster and other fun stuff... : Security</title><link>http://blogs.technet.com/justinturner/archive/tags/Security/default.aspx</link><description>Tags: Security</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Quick Tip: Back up your NTFS security permissions</title><link>http://blogs.technet.com/justinturner/archive/2009/02/26/quick-tip-back-up-your-ntfs-security-permissions.aspx</link><pubDate>Thu, 26 Feb 2009 15:09:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3206889</guid><dc:creator>justintu</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.technet.com/justinturner/comments/3206889.aspx</comments><wfw:commentRss>http://blogs.technet.com/justinturner/commentrss.aspx?PostID=3206889</wfw:commentRss><description>&lt;p&gt;&lt;font size="3"&gt;Here is a simple command that you can run right now in order to save you from some down-time the next time your file system &lt;/font&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc787794.aspx" target="_blank"&gt;&lt;font size="3"&gt;permissions&lt;/font&gt;&lt;/a&gt;&lt;font size="3"&gt; get set back to the Windows defaults.&amp;#160; Proactively running this from time to time (think: task scheduler) can save you a lot of time and money the next time disaster strikes.&amp;#160; There are multiple backup solutions and utilities that you can use for this purpose, however this one is easy to use and the price is right. (free)&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Subinacl.exe&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&amp;amp;displaylang=en" target="_blank"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;Here is example syntax that you can use to proactively back up your NTFS permissions:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&amp;amp;displaylang=en"&gt;&lt;/a&gt;&lt;/p&gt; &lt;strong&gt;Subinacl /noverbose /output=c:\ntfs_perms.txt /subdirectories &amp;quot;Path to the Folder whose NTFS permissions we have to Backup&amp;quot;&lt;/strong&gt;   &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;To backup the permissions of the folder, subfolders and files on folder called Data on the G: drive&lt;/font&gt;:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;subinacl /noverbose /output=c:\ntfs_perms.txt /subdirectories G:\data\&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;If you wanted to just backup the NTFS permissions for the entire drive, the command would look like this:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;subinacl /noverbose /output=c:\ntfs_G_drive_perms.txt /subdirectories G:\*.*&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;Most of you will probably not be concerned with backing up down to the file level, and are satisfied with just backing up the permissions at the directory level.&amp;#160; Backing up the permissions for just the directories can be achieved with the following syntax:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;subinacl /noverbose /output=c:\G_driveNTFSperms.txt /subdirectories=directoriesonly G:\*.*&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/justinturner/WindowsLiveWriter/QuickTipBackupyourNTFSsecuritypermission_1376E/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/justinturner/WindowsLiveWriter/QuickTipBackupyourNTFSsecuritypermission_1376E/image_thumb_1.png" width="749" height="142" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;The contents of the file created by subinacl are viewable in your favorite text editor:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/justinturner/WindowsLiveWriter/QuickTipBackupyourNTFSsecuritypermission_1376E/image_8.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/justinturner/WindowsLiveWriter/QuickTipBackupyourNTFSsecuritypermission_1376E/image_thumb_3.png" width="623" height="512" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;To restore the permissions on the drive using the file that you backed them up to:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;Subinacl /playfile c:\G_driveNTFSperms.txt&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/justinturner/WindowsLiveWriter/QuickTipBackupyourNTFSsecuritypermission_1376E/image_10.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/justinturner/WindowsLiveWriter/QuickTipBackupyourNTFSsecuritypermission_1376E/image_thumb_4.png" width="869" height="137" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;Test it out thoroughly in your lab environment before rolling it out to production.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;Thanks for reading,&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;Justin Turner&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9d9493cd-749d-45bd-81c0-1d4d60b8981c" class="wlWriterEditableSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Permissions" rel="tag"&gt;Permissions&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Server+2008" rel="tag"&gt;Server 2008&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Server+2003" rel="tag"&gt;Server 2003&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Security" rel="tag"&gt;Security&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3206889" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/justinturner/archive/tags/Windows+Server+2003/default.aspx">Windows Server 2003</category><category domain="http://blogs.technet.com/justinturner/archive/tags/Disaster+Recovery/default.aspx">Disaster Recovery</category><category domain="http://blogs.technet.com/justinturner/archive/tags/Quick+Tips/default.aspx">Quick Tips</category><category domain="http://blogs.technet.com/justinturner/archive/tags/Server+2008/default.aspx">Server 2008</category><category domain="http://blogs.technet.com/justinturner/archive/tags/Security/default.aspx">Security</category></item></channel></rss>