Jump to content

Export acls


Recommended Posts

Guest tom.doniphon
Posted

Hello guys,

Could somebody tell me how to export the ntfs permissions (acl) of a folder

and to import them in another?

Many thanks in advance.

  • Replies 4
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: Export acls

 

 

"tom.doniphon" <tomdoniphon@discussions.microsoft.com> wrote in message

news:06A9FA3E-0E50-4DAE-A7C9-9AAFE02C3980@microsoft.com...

> Hello guys,

> Could somebody tell me how to export the ntfs permissions (acl) of a

> folder

> and to import them in another?

> Many thanks in advance.

 

How can you import permissions for files that exist in the

source folder but not in the target folder?

 

Conversely: Where would you take the permissions from

if a file exists in the target folder but not in the source

folder?

 

Same questions for the folders themselves.

Guest tom.doniphon
Posted

Re: Export acls

 

Thanks for your help. But i wonder: would there be some command or tool to

assign the permissions of a folder(source), without considering the files and

folders that it could contain, to other folder(target) and from this, without

considering the files and folders that it could contain, that spread down?

I beg you pardon for my insistence and thank you again.

T.Doniphon

 

"Pegasus (MVP)" wrote:

>

> "tom.doniphon" <tomdoniphon@discussions.microsoft.com> wrote in message

> news:06A9FA3E-0E50-4DAE-A7C9-9AAFE02C3980@microsoft.com...

> > Hello guys,

> > Could somebody tell me how to export the ntfs permissions (acl) of a

> > folder

> > and to import them in another?

> > Many thanks in advance.

>

> How can you import permissions for files that exist in the

> source folder but not in the target folder?

>

> Conversely: Where would you take the permissions from

> if a file exists in the target folder but not in the source

> folder?

>

> Same questions for the folders themselves.

>

>

>

Guest Pegasus \(MVP\)
Posted

Re: Export acls

 

Please spend a moment thinking about your request. Let's assume

you have this situation:

 

Source folder tree: C:\A\A1\A2\A3

Target folder tree: X:\B\B1\B2\B3

 

Where would you apply the permissions that exist in C:\A\A1?

To X:\B\B1? By what logic?

 

Your best bet might be to take the permissions that exist for

the folder C:\A and apply them to the folder ***tree*** X:\B.

 

 

"tom.doniphon" <tomdoniphon@discussions.microsoft.com> wrote in message

news:D225F3E1-1AD0-46A5-906D-26D06D17C095@microsoft.com...

> Thanks for your help. But i wonder: would there be some command or tool to

> assign the permissions of a folder(source), without considering the files

> and

> folders that it could contain, to other folder(target) and from this,

> without

> considering the files and folders that it could contain, that spread down?

> I beg you pardon for my insistence and thank you again.

> T.Doniphon

>

> "Pegasus (MVP)" wrote:

>

>>

>> "tom.doniphon" <tomdoniphon@discussions.microsoft.com> wrote in message

>> news:06A9FA3E-0E50-4DAE-A7C9-9AAFE02C3980@microsoft.com...

>> > Hello guys,

>> > Could somebody tell me how to export the ntfs permissions (acl) of a

>> > folder

>> > and to import them in another?

>> > Many thanks in advance.

>>

>> How can you import permissions for files that exist in the

>> source folder but not in the target folder?

>>

>> Conversely: Where would you take the permissions from

>> if a file exists in the target folder but not in the source

>> folder?

>>

>> Same questions for the folders themselves.

>>

>>

>>

Guest jwgoerlich@gmail.com
Posted

Re: Export acls

 

> Could somebody tell me how to export the ntfs permissions (acl) of a

> folder and to import them in another?

 

I use SetAcl to dump out the permissions to a file.

 

SetAcl.exe -on "E:\SomeFolder" -ot "file" -lst "f:sddl;w:d,o;i:n;s:y" -

actn backup -rec yes -bckp "E-ntfs-acl.txt"

 

I then open the text file with notepad. Do a find and replace to

change the folder path from the old to the new folder. Then use SetAcl

to apply the permissions from the file.

 

SetAcl.exe -on "E:\AnotherFolder" -ot "file" -lst

"f:sddl;w:d,o;i:n;s:y" -actn restore -rec yes -bckp "E-ntfs-acl.txt"

 

Hope that helps,

 

J Wolfgang Goerlich


×
×
  • Create New...