PDA

View Full Version : setting inheritable permissions from command prompt


Jason Steeves
October 28th 04, 01:03 PM
I was wondering if anyone had a way to deselect the "allow inheritable
permissions from parent to propagate to this object", select copy the
permissions, and then reselect "allow inheritable permissions from parent to
propagate to this object" on a folder from the command line?

Thanks,
Jason

Hans-Georg Michna
October 28th 04, 08:24 PM
On Thu, 28 Oct 2004 05:03:02 -0700, "Jason Steeves"
> wrote:

>I was wondering if anyone had a way to deselect the "allow inheritable
>permissions from parent to propagate to this object", select copy the
>permissions, and then reselect "allow inheritable permissions from parent to
>propagate to this object" on a folder from the command line?

Jason,

check CACLS and XCACLS. I don't know offhand, but at least one
of these can probably do this.

Create a test folder with some files or subfolders and
experiment with them first. The programs can be misunderstood.

Hans-Georg

--
No mail, please.

Kent W. England [MVP]
October 29th 04, 03:33 AM
Hans-Georg Michna wrote on 28-Oct-2004 12:24 PM:
> On Thu, 28 Oct 2004 05:03:02 -0700, "Jason Steeves"
> > wrote:
>
>
>>I was wondering if anyone had a way to deselect the "allow inheritable
>>permissions from parent to propagate to this object", select copy the
>>permissions, and then reselect "allow inheritable permissions from parent to
>>propagate to this object" on a folder from the command line?
>
>
> Jason,
>
> check CACLS and XCACLS. I don't know offhand, but at least one
> of these can probably do this.
>
> Create a test folder with some files or subfolders and
> experiment with them first. The programs can be misunderstood.
>
> Hans-Georg
>
Take H-G's advice to test because when you forget the /e option, you're
screwed.

--
Kent W. England, Microsoft MVP for Windows Security

Google