Folder Security

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dishan

    #1

    Folder Security

    Hi all
    how do I set folder security permission to full access.( for "Everyone"
    or Specific user )
    regards
    dishan


  • Jacky Kwok

    #2
    Re: Folder Security

    Dishan wrote:[color=blue]
    > Hi all
    > how do I set folder security permission to full access.( for "Everyone"
    > or Specific user )
    > regards
    > dishan
    >
    >[/color]


    You can use the win32 API "SetFileSecurit y" and the relative fucntions.

    or

    for pure managed code, using classes in "System.Managem ent" namespace to
    handle the WMI "ROOT.CIMV2.Win 32.LogicalFileS ecuritySetting" object to
    set the security.


    You need to understand the windows security concept, e.g. the
    DACL,SecurityDe scriptor,etc, in both methods.

    --
    Jacky Kwok
    jacky@alumni.cu hk.edu.hk
    jacky@compose.c om.hk

    Comment

    • Dishan

      #3
      Re: Folder Security

      Can u give me some sample code ??
      thanks
      Dishan

      "Jacky Kwok" <jacky@hkcompos e.com> wrote in message
      news:#5Wg1FddDH A.748@TK2MSFTNG P10.phx.gbl...[color=blue]
      > Dishan wrote:[color=green]
      > > Hi all
      > > how do I set folder security permission to full access.( for[/color][/color]
      "Everyone"[color=blue][color=green]
      > > or Specific user )
      > > regards
      > > dishan
      > >
      > >[/color]
      >
      >
      > You can use the win32 API "SetFileSecurit y" and the relative fucntions.
      >
      > or
      >
      > for pure managed code, using classes in "System.Managem ent" namespace to
      > handle the WMI "ROOT.CIMV2.Win 32.LogicalFileS ecuritySetting" object to
      > set the security.
      >
      >
      > You need to understand the windows security concept, e.g. the
      > DACL,SecurityDe scriptor,etc, in both methods.
      >
      > --
      > Jacky Kwok
      > jacky@alumni.cu hk.edu.hk
      > jacky@compose.c om.hk
      >[/color]


      Comment

      • Jacky Kwok

        #4
        Re: Folder Security

        Dishan wrote:[color=blue]
        > Can u give me some sample code ??
        > thanks
        > Dishan
        >[/color]


        You can find examples in "http://www.gotdotnet.c om/community/usersamples/".

        One I can find is
        "http://www.gotdotnet.c om/Community/UserSamples/Details.aspx?Sa mpleGuid=e60985 75-dda0-48b8-9abf-e0705af065d9".

        --
        Jacky Kwok
        jacky@alumni.cu hk.edu.hk
        jacky@compose.c om.hk

        Comment

        Working...