Reset folder inheritance

  • Thread starter Thread starter David Trimboli
  • Start date Start date
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?
 
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:o,g,d,s;i:y"
 
[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?
 
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
 
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
 
Back
Top