Set permissions and propagate to all child objects???

Got a problem you cannot solve? Try here.
Post Reply
5aclockshadow
Posts: 63
Joined: Thu Feb 05, 2009 9:27 am
Location: NJ, USA

Set permissions and propagate to all child objects???

Post by 5aclockshadow »

Is it possible to set permissions at the top level and have them propagate to all child objects???

I'm setting permission for Everyone --> Full Control but there could be hundreds of sub-directories ... can I set it once and have it propagate to all sub-directories or do I have have to set permissions for all sub-directories individually?

Is there a switch or command to control whether you are setting permissions on just that directory or that directory and all sub-directories?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Set permissions and propagate to all child objects???

Post by giaviv »

Dear 5aclockshadow,

How exactly are you setting those permissions?

Thanks
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
5aclockshadow
Posts: 63
Joined: Thu Feb 05, 2009 9:27 am
Location: NJ, USA

Re: Set permissions and propagate to all child objects???

Post by 5aclockshadow »

As text:
" Set Read Write Permissions on File System Object "$TARGETDIR$" for Everyone Authenticated Users $ASPNET$"

As code:

Code: Select all

~InstallAware Clipboard Data~
~Set Access Control~
~{5900DBFE-8DAE-4F61-9752-ECFB78F21A92}~
~$TARGETDIR$~
~TRUE~
~FALSE~
~TRUE~
~TRUE~
~$ASPNET$~
~TRUE~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Set permissions and propagate to all child objects???

Post by giaviv »

Dear 5aclockshadow,

The permissions you set to a folder will propagate to all of its children.

Thanks
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
5aclockshadow
Posts: 63
Joined: Thu Feb 05, 2009 9:27 am
Location: NJ, USA

Re: Set permissions and propagate to all child objects???

Post by 5aclockshadow »

hmm, ok, thanks.

If that is the case then I will have to look into things further on our end.

Just curious, what if I only want to set permissions on that folder and did not it to propagate down? Is there a way to do this?

Also the specific issue we're having is when our web app tries to create a new file in a sub-directory, read that file, then delete it. If I'm setting Everyone to Full Control then this should not be an issue, correct?

Any thoughts ... or can you point me in a direction to start troubleshooting this issue?


Thanks for any help!
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Set permissions and propagate to all child objects???

Post by giaviv »

Dear 5aclockshadow,

Please note that when you set permissions to a folder (in IA and in Windows) - if the folder is empty, the permissions do not propagate down to the child objects. However, Windows is defaulted to having files inherit their father's permissions, so in that case, permissions will be inherited.

Thanks
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply