Re: API NetShareAdd not really working

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



As Ralph suggested, this is normal. Sharing is one thing, and setting the
permissions is another. However, if this is intended for general use,
downloadable product, then leave both the sharing and permissions to the end
user's network administrators. If you do it yourself, they will hate it
because it seems like someone changed their network security without their
knowledge.

If this is for a single user, then it can be done with a batch file using
"NET SHARE" and CACLS or SetACL. In VB, you can set the permissions using
the routines in the following article:

How to use low-level access control APIs from Visual Basic
http://support.microsoft.com/kb/316440

Also see Q240176: "HOWTO: Set Security on a NTFS Folder Programmatically" in
MSDN Library Oct 2001, but the routines in the article above are easier to
use.






.



Relevant Pages

  • Re: Network data wronh- Help!
    ... "desktop" for sharing out data, backing up data to it, etc. ... therefore security permissions are controlled by the ... Therefore when you are looking at it from the Network ... The Browser Service is what populate the ...
    (microsoft.public.win2000.networking)
  • Re: Network data wronh- Help!
    ... "desktop" for sharing out data, backing up data to it, etc. ... therefore security permissions are controlled by the ... Therefore when you are looking at it from the Network ... The Browser Service is what populate the ...
    (microsoft.public.win2000.networking)
  • Re: Network data wronh- Help!
    ... "desktop" for sharing out data, backing up data to it, etc. ... therefore security permissions are controlled by the user ... Therefore when you are looking at it from the Network ... The Browser Service is what populate the ...
    (microsoft.public.win2000.networking)
  • disabling simple file sharing+sharing folder gives network full ac
    ... I turned off simple file sharing. ... any other machine without any credential prompts. ... has been removed, users have read-only permissions, Administrators and SYSTEM ... I get a warning prompt that the folder is shared for administrative ...
    (microsoft.public.windowsxp.network_web)
  • Re: Cant set permissions on drive
    ... Sharing and Security tabs are available on folders however. ... I have Simple File Sharing turned off on the XP boxes and I'm logged ... I have the Sharing/Security tabs avilable for the drives yet can't say ... How to set, view, change, or remove file and folder permissions in Windows XP ...
    (microsoft.public.windowsxp.general)