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?

SetAcl from SourceForge.net (free and practically always safe software.)

(Warning: SetAcl is very powerful with very few limitations but
due to this has one of the most complicated command lines of ANY
command line tool on any OS.*)

Maybe it is further complicated by being a 'Windows tool, designed
largely by Linux experts.'
 
mutha said:
Shane wrote:
Any ideas?

just use net share

Net Share added "permissions" only recently, so using
this depends on the version of the OS you are using.

Win2000 and XP don't (seem to) have this; Win2003 does.

Do any of them support DENY or REMOVE? Help seems
to indicate that Win2003 does support remove either.
 
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?

search for "subinacl" :-)

but i remember something about win2003server... there is a native command,
right?
 
In said:
search for "subinacl" :-)

but i remember something about win2003server... there is a
native command, right?

Thinking of regini.exe?
If that is included in other than a Resource Kit.
SUBINACL is better than regini from NT4 and 5.0 IMO.
 
SubInAcl.exe is built-in.

Yes, it will change most security on most object types
including shares and the registry.

SetAcl.exe is available on SourceForge.net, and while
not built-in it is quite capable.
 
Back
Top