Gossamer Forum
Home : General : Perl Programming :

Setting Permissions on folders

Quote Reply
Setting Permissions on folders
I can set permissions on a folder for a domain user, how do I add the remote server's local administrator to this list:

This is what I have already:
yak ("Setting protections on $usertargetpath");
my $domain_user = "Domain\\" . "$user" . ":F";
my $local_admins = "\\\\RemoteServer\\Administrator:F"; - This one doesn't seem to work.
system ("cacls $usertargetpath /p $domain_user /e >nul"); - This works OK
system ("cacls $usertargetpath /e /p $local_admins >nul"); - I get the following error: No mapping between account names and security IDs was done.

Thanks for the help.

Last edited by:

Rocky99: Nov 19, 2003, 5:47 PM