Reset folder inheritance

D

David Trimboli

I'm setting up a silent install of FileZilla, but one thing I want to
fix is its unfortunate behavior of setting up shortcuts in the current
user's profile, rather than in All Users.

I can copy the files to the correct location, but they have the wrong
permissions. Is there a command-line-based way of removing all
explicitly set ACEs on the folder and subfiles and enabling inheritance?
 
M

Michael Bednarek

I'm setting up a silent install of FileZilla, but one thing I want to
fix is its unfortunate behavior of setting up shortcuts in the current
user's profile, rather than in All Users.

I can copy the files to the correct location, but they have the wrong
permissions. Is there a command-line-based way of removing all
explicitly set ACEs on the folder and subfiles and enabling inheritance?

One line; the part starting with "-actn list" is not necessary.
SETACL -on "%ALLUSERSPROFILE%\FileZilla.LNK" -ot file -actn clear -clr dacl -actn setprot -op "dacl:np" -actn list -lst "f:tab;w:blush:,g,d,s;i:y"
 
M

Michael Bednarek

[snip]
You can use cacls at the command prompt to change permissions.

I haven't been able to figure out how to use CACLS.EXE to "Reset folder
inheritance" as David Trimboli asked in the Subject: line. Would you
mind showing us?
 
J

John John

Michael said:
[snip]
You can use cacls at the command prompt to change permissions.


I haven't been able to figure out how to use CACLS.EXE to "Reset folder
inheritance" as David Trimboli asked in the Subject: line. Would you
mind showing us?

/t : Changes DACLs of specified files in the current directory and all
subdirectories.

Wouldn't that accomplish what he wants?

John
 
J

John John

John said:
Michael said:
[snip]
You can use cacls at the command prompt to change permissions.



I haven't been able to figure out how to use CACLS.EXE to "Reset folder
inheritance" as David Trimboli asked in the Subject: line. Would you
mind showing us?


/t : Changes DACLs of specified files in the current directory and all
subdirectories.

Wouldn't that accomplish what he wants?

He could bring back inheritance or reset the inheritance flag
with xcacls.vbs .

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top