batch file for share permissions

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?
 
H

Herb Martin

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.'
 
H

Herb Martin

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.
 
B

Bertoldino

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?
 
M

Mark V

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.
 
H

Herb Martin

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top