RE:Permisos en Carpetas NT
Tienes en NT la utilidad cacls, pero creo que no es nativa, sino que viene con un service pack (puede ser el 4).
Echale un vistazo para ver como funciona, y de paso aquí te va un archivo .cmd de ejemplo:
@echo off
REM Set-ACLs.cmd--Set some NTFS ACLs from the command line
REM Information Security Magazine, February 2002
REM v1.0 27-Oct-2001 JP Vossen
echo.
echo Using cacls may remove "inherit permissions" when using SCM/2000!
echo.
REM This example is interesting because of the 'echo y' part.
REM cacls complains because we are replacing any existing permissions and
REM it does not have a '/y' switch to force a 'yes' answer. So you can
REM echo a yes into it. But you must NOT use any spaces or it won't work!
REM We redirect to NUL so we don't have to look at the output.
echo.
echo Giving System and Administrators full control of c:\OKTools...
echo y|cacls c:\OKTools /T /C /G Administrators:F > NUL
cacls c:\OKTools /T /E /C /P System:F > NUL
REM Note we are not redirecting to NUL here, so we see more.
echo.
echo Giving ONLY Administrators full control of c:\EvilTools...
echo This way a compromised process running in the System context (e.g. IIS)
echo cannot access EvilTools...
echo.
echo y|cacls c:\EvilTools /T /C /G Administrators:F
echo.
Saludos,
Javi.