windowssharedcacls

Correct format of a UNC path for CACLS for a remote folder


I would like to list the ACLs on a file that is shared on a remote machine (I do have all the admin permissions)

It is available in \win2003ad\testfolder

When I run the command

cacls \\win2003ad\testfolder

I get the error "The network path could not be found." However, when I point out to a particular object in the shared folder, e.g.

cacls \\win2003ad\testfolder\users.csv

I get the correct result. Also, I get the correct result when I check it locally, i.e.

cacls c:\testfolder

Have you got any idea how this can be solved? (I can only use command line (no PS) and I run win2003


Solution

  • Quite old now, but no solution yet... cacls is an old tool, you should use icacls:

    icacls \\win2003ad\testfolder
    

    Just tried it on a Windows Server 2003, just in case the command was not there yet, and it worked.