Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 672
Bartosz Avatar asked Jan 26 '26 16:01

Bartosz


1 Answers

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.

like image 130
curropar Avatar answered Jan 28 '26 07:01

curropar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!