Batch file for share permissions

  • Thread starter Thread starter Shane
  • Start date Start date
S

Shane

Hi

I am looking for a way to change share permissions on folders via a batch
file . I have found xcacls works fine for security but not shares (as far as
I can tell). Any ideas?
 
Shane said:
Hi

I am looking for a way to change share permissions on folders via a batch
file . I have found xcacls works fine for security but not shares (as far as
I can tell). Any ideas?

Under Windows 2003 server you can use "net share".
Under previous Windows OSs you can youse setacl.exe
(www.SourceForge.net) - if you can wrap your mind
around the terribe user interface. Good luck!
 
Shane said:
Hi

I am looking for a way to change share permissions on folders via a batch
file . I have found xcacls works fine for security but not shares (as far as
I can tell). Any ideas?

A much better alternative is to set the share
permissions to "Full Control" for everyone and
apply appropriate NTFS restrictions. They are
vastly superior anyway!
 
Back
Top