How to import and export NTFS right ?

Posted on 2008-06-24
Last Modified: 2010-05-18
How to export ntfs right to file and how to import this file on new file copy ? (like getfacl and setfacl on linux)
It's on 2003 server.
Thank a lot for your help

Question by:fas3r
  • 3
  • 2
  • 2
LVL 15

Expert Comment

ID: 21855400
There is a free software utility from Microsoft called Xcacls which allows you to retrieve the NTFS permissions on files and folders, you can then manipulate this to create the new settings:

There is also another good utility called SUBINACL.EXE which does a similar thing but is good for transferring security between domains:

Author Comment

ID: 21855532
Can you give me example to use Xcacls or subinacl for retrieve right on folder from file ?
if it's possible .. :s
thank for your time,
LVL 16

Accepted Solution

mattee76 earned 500 total points
ID: 21855726
If you want to just copy the filesystem + NTFS permissions, have a look at robocopy (using /sec switch)
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

LVL 15

Expert Comment

ID: 21855793
if you want to retrieve the settings for folder on c:\temp you would run the following:

xcacls.exe c:\temp

This will display all the security set to this folder. However, if security is set further down the folders e.g. if all permissions have been removed and reset from folderA down within c:\temp\folder1\folderA then it ill not display this information. In this case you have to manually check each file and folder to calculate the individual permissions. In most cases the permissions will have been set from the top down but if it is a comple data structure with restricted subfolders then permissions may have been set on the subfolders.


Author Closing Comment

ID: 31470122
yes i have look for this thank it's work great. Do you know if it's exist option to log just what are failed ?
Thank for answer all.

Author Comment

ID: 21861329
Do you know if it's exist option to log just what are failed ?
Thank for answer all.
LVL 16

Expert Comment

ID: 21863028
I dont believe so, you could do the following..

/LOG+:c:\results.txt /TEE
This will output the results to a c:\results.txt file as well as the console

You could then use "find" to scan that file for any failures

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Display multiple images in report 12 118
Event ID: 5719 / Source: NETLOGON 9 129
Independent domain networks for setup 6 117
Windows 2003 SID Regeneration in ESXi 6.0 5 90
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question