I have a path with the following privileges:
E:\MY_PATH BUILTIN\Administrators:(OI)(CI)F
NT AUTHORITY\SYSTEM:(OI)(CI)F
BUILTIN\Administrators:F
CREATOR OWNER:(OI)(CI)(IO)F
BUILTIN\Users:(OI)(CI)R
BUILTIN\Users:(CI)(special access:)
FILE_APPEND_DATA
BUILTIN\Users:(CI)(special access:)
FILE_WRITE_DATA
In this path there is a text file that I can't modify or remove: I can only append rows.
I would like to know how can I grant Write to this file for a while, and then return to the original settings.
It is a log file and it is becoming too big, so I would like to leave out the older rows keeping only the more recent 1000 rows.
But I have not privileges to remove lines or to delete the file.
Please help.
Thank you in advance.
I have just read CACLS /? but I did not understand how to use this command.