Discussion:
Cacls.exe Return Codes
(too old to reply)
Brad
2006-10-10 22:30:02 UTC
Permalink
I am using cacls.exe in a script to setup some permissions. In certain tests
of the script I am getting return codes of 5 and 13 from the call to
cacls.exe. However I cannot find any documentation that explains the meaning
of these return codes. Can someone please point me to the documentation for
the cacls tool.

Thanks! - Brad
Eric Perlin [MSFT]
2006-10-18 00:00:02 UTC
Permalink
I'm not making guaranties for all cases, but isn't the output of cacls
indicating "Access is denied" when the exit code is 5 (ERROR_ACCESS_DENIED)?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Eric Perlin [MSFT]
Post by Brad
I am using cacls.exe in a script to setup some permissions. In certain tests
of the script I am getting return codes of 5 and 13 from the call to
cacls.exe. However I cannot find any documentation that explains the meaning
of these return codes. Can someone please point me to the documentation for
the cacls tool.
Thanks! - Brad
M. Burnett
2006-10-18 01:26:14 UTC
Permalink
Cacls.exe does return the actual API error codes when there is an error.
You can get the error message by using net helpmsg <code> from the
command prompt.

Sometimes it is normal to get access denied errors. Cacls provides the
/C argument to continue even if there is an error.


Mark
Post by Eric Perlin [MSFT]
I'm not making guaranties for all cases, but isn't the output of cacls
indicating "Access is denied" when the exit code is 5
(ERROR_ACCESS_DENIED)?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Eric Perlin [MSFT]
Post by Brad
I am using cacls.exe in a script to setup some permissions. In
certain tests
Post by Brad
of the script I am getting return codes of 5 and 13 from the call to
cacls.exe. However I cannot find any documentation that explains the
meaning
Post by Brad
of these return codes. Can someone please point me to the
documentation for
Post by Brad
the cacls tool.
Thanks! - Brad
Loading...