Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > Utilities Suggestions
  New Posts New Posts RSS Feed - Copy Folder permissions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Copy Folder permissions

 Post Reply Post Reply
Author
Message
vikas.malhotra View Drop Down
Groupie
Groupie


Joined: 20 January 2009
Location: India
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote vikas.malhotra Quote  Post ReplyReply Direct Link To This Post Topic: Copy Folder permissions
    Posted: 02 June 2009 at 4:46pm

Hi,

I am looking for some tool which will help us to copy folder permission which we have applied to one folder "Acturial" which was hosted on san storage and the volume name is "Common03"

We have just created on new volume "Common07" and want to move the "Acturial" folder from "Common03" to "common07"

We want to take backup of all the permissions which is currently applied on " Acturial" folder and as soon as we move that folder to "common07" we need to restore the pemissions back

Please let me know the software name which will help us out.Also please advice is there any software which microsoft provide for same

Thanks
Vikas

Back to Top
Bruce9 View Drop Down
Groupie
Groupie


Joined: 30 May 2008
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bruce9 Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2009 at 9:53am
Just use ACL apis.
Back to Top
vikas.malhotra View Drop Down
Groupie
Groupie


Joined: 20 January 2009
Location: India
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote vikas.malhotra Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2009 at 3:51am
Hi Bruce9,
 
Please advice what do you mean by ACL apis.
 
Is that some application.If yes,please provide me with the link  so that i can know more about that.
 
Thanks
Vikas
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Status: Offline
Points: 17516
Post Options Post Options   Thanks (0) Thanks(0)   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2009 at 11:58am
Bruce9 means for you to write your own app that will set the folder pemissions as desired.  Not overly helpful...
Daily affirmation:
net helpmsg 4006
Back to Top
JimCharles View Drop Down
Groupie
Groupie


Joined: 19 March 2009
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote JimCharles Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2009 at 5:13pm
Hi,
Recall that permissions will inherit from the the parent folder (assuming inheritance is turned on). 
To get and set permissions you can use cacls.exe (included in all versions of Windows > 2000)

Also xcopy has a /O switch which can be used to copy permissions while copying.
Jim Charles
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Status: Offline
Points: 17516
Post Options Post Options   Thanks (0) Thanks(0)   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2009 at 5:27pm
Perhaps, Robocopy will also be a possibility...
Daily affirmation:
net helpmsg 4006
Back to Top
mark.murphy View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2009
Location: United Kingdom
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote mark.murphy Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2009 at 5:48pm
Hi vikas.malhotra,

I do like Robocopy if you want to copy/move files and retain the current security permissions, but if you want to export just the permissions and reapply them at any time you may want to look at a utility called SetACL.  One of its nice features is that it works on almost all windows objects (files, shares, registry, services, printers

You can download it from here:
http://setacl.sourceforge.net/
Back to Top
samhain99 View Drop Down
Newbie
Newbie


Joined: 12 February 2010
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote samhain99 Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2010 at 6:52pm
Wow...  Use API's?  you are soooo core.

Here's a simple gui way...

1.  Create a child folder under the one who's permissions you want to copy.

2.  Go to your new folder and uncheck the "allow inheritable permissions to hit this object"

3.  When it asks you what you want to do, select "copy".  Now you have a folder that has all those permissions. 

4. Move your new folder to where you want it.

5.  Now Reset the "inherit permissions from parent" if you so choose on your new folder in its new location.

Quick and dirty.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down