Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1689
  • Last Modified:

How to import and export NTFS right ?

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

Fas3r
0
fas3r
Asked:
fas3r
  • 3
  • 2
  • 2
1 Solution
 
fishadrCommented:
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:

http://support.microsoft.com/kb/318754

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

http://www.analogduck.com/main/subinacl#Examples
0
 
fas3rAuthor Commented:
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,
fas3r
0
 
Matthew MillersCommented:
If you want to just copy the filesystem + NTFS permissions, have a look at robocopy (using /sec switch)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
fishadrCommented:
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.


0
 
fas3rAuthor Commented:
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.
0
 
fas3rAuthor Commented:
Do you know if it's exist option to log just what are failed ?
Thank for answer all.
0
 
Matthew MillersCommented:
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
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now