PDA

View Full Version : Remind me - How to set permissions on network share?



NewsArchive
04-21-2011, 01:31 AM
I know we discussed this before and I believe this feature was added in the
last build....

How do I set "Permissions" on a network share? I know we can set
permissions under the security tab on the directory's properties but what
about share permissions?

Thanks,

Don

NewsArchive
04-21-2011, 01:31 AM
The SB help says "It is not possible to configure permissions with the
NetShareAdd API on Windows! "

You could instead use the command line (or run a batch file) to create the
share and set the share permissions.

NET SHARE C:\MYDATAFOLDER /GRANT:Everyone,full

Use SB to set the NTFS permissions on the folder.

Note that this may be an issue on non-English Windows machines. I don't
know how to use NET SHARE with SIDs instead of actual user or group names.

This thread http://www.lindersoft.com/forums/showthread.php?t=21295
references a tool called rmtshare.exe, with which I have no personal
experience:
http://www.windowsitpro.com/article/domains2/jsi-tip-6353-rmtshare-exe-is-in-the-public-domain-


Jane