/build/static/layout/Breadcrumb_cap_w.png

SetACL.exe works locally but not remotely

Writing a small package for our Site Support folks to quickly modify some folder permissions on remote PCs (we're a Windows XP/Office 2003 environment). And so via this forum I found my way to SetACL. I can get it to work by running it locally, but not remotely. At this point all I'm doing is using the SetACL examples (http://setacl.sourceforge.net/html/examples.html).

If I copy SetACL.exe to my target PC and then run this from the command line, I get the expected change, which is that the Users group gets Modify permissions added to their existing permissions for the Fonts folder:
setacl.exe -on "C:\Windows\Fonts" -ot file -actn ace -ace "n:Users;p:change"

[font="times new roman"]But what I really want to do is run SetACL on a remote PC. And when I try this code, SetACL returns the error message "The object was not set":
setacl.exe -on \\[testpcname]\c$\windows\fonts" -ot file -actn ace -ace "n:Users;p:change"
[font="times new roman"]
[font="times new roman"]I have no idea what I'm doing wrong or what else I can try. Any help?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: RonW 15 years ago
Green Belt
0
Figured it out. The remote command as I wrote it is correct. Too bad I wasn't USING that command. [:)]
Somehow I had an extra backslash at the end of my path, which wouldn't work.
So this was bad: "\\[testPCname]\c$\windows\fonts\"
[font="times new roman"]But this was good: "\\[testPCname]\c$\windows\fonts"
[font="times new roman"]
Posted by: anonymous_9363 15 years ago
Red Belt
0
For software which is so capable in every other area, this 'feature' of SetACL is the one which irritates me the most. How hard is it to test for a trailing backslash?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ