how to reset folders and files ntfs permissions ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

how to reset folders and files ntfs permissions ?

Post by *giulia »

Hi

can I know how do you reset folder and files ntfs permissions via tc ?

I use the cmd as administrator
icacls A:\test /reset
icacls A:\test\test.txt /reset
and if want to reset all the folder files ,sub folders and files
icacls A:\test /reset /t /c /l

is the best way to do it with tc creating 2 buttons ?
and using c:\Windows\System32\icacls.exe or c:\Windows\SysWOW64\icacls.exe ?
I would like to copy icacls inside the tc commander folder so i can use %COMMANDER_PATH%\icacls.exe

or is there another tool that could be used safely

Code: Select all

TOTALCMD#BAR#DATA
c:\Windows\SysWOW64\icacls.exe

K:\Totalcmd 10\TOTALCMD64.EXE,49
reset files or folders
%P%S /reset
0
-1
and for the folder files ,sub folders and files

Code: Select all

TOTALCMD#BAR#DATA
c:\Windows\SysWOW64\icacls.exe

K:\Totalcmd 10\TOTALCMD64.EXE,49
reset files or folders
%P%S /reset /t /c /l

-1
thanks
love Total Commander , best file manager ever made
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: how to reset folders and files ntfs permissions ?

Post by *nsp »

icacls do not accept more than one name at once so %P%S will not work.

If you want to run for each file / folder you can use TCBL (* do it as admin) -p pause to see result !

Code: Select all

TOTALCMD#BAR#DATA
*%commander_path%\tools\tcbl\tcbl.exe
-p %L @icacls $f /reset /c /t
%commander_path%\WCMICON2.DLL


0
-1
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: how to reset folders and files ntfs permissions ?

Post by *giulia »

nsp wrote: 2022-01-19, 13:32 UTC icacls do not accept more than one name at once so %P%S will not work.

If you want to run for each file / folder you can use TCBL (* do it as admin) -p pause to see result !

Code: Select all

TOTALCMD#BAR#DATA
*%commander_path%\tools\tcbl\tcbl.exe
-p %L @icacls $f /reset /c /t
%commander_path%\WCMICON2.DLL


0
-1
Hi
have you tried FileACL https://archive.ph/pnb1o?
later i will test your tcbl from here https://ghisler.ch/board/viewtopic.php?t=9374 :D
thanks Nsp
love Total Commander , best file manager ever made
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: how to reset folders and files ntfs permissions ?

Post by *nsp »

FileACL is a very old tools that suffer from same issue (one file at the time).
I was using it more than 15years ago (Windows server 2000) but the original www.gbordier.com website is down and icacls just work fine and is included in system !
Post Reply