• Folders – restricting access

    Author
    Topic
    #463732

    Hi,

    Got two folders “Main” and “Submain”.

      [*]Everyone (“mains”) should be allowed to view files in “Main”.
      [*]A small group of people “subs” – should be allowed to create, modify and view content in “Submain”.
      [*]”Mains” should receive “Acces denied” when trying to access “Submain”.

    Once a day content of “Submain” is released and the files are moved to “Main” by a scheduled task (AT).

      [*]Now all “Mains” and “subs” should be able to open the files in “Main”.

    Current problem is, that if a file is created or modified in “Submain”, then after being moved to main it is unaccesible to “mains” – and can still only be opened by “subs”.

    Does anyone know if there’s a way around this windows “feature”…??

    TIA
    Bests,

    Viewing 0 reply threads
    Author
    Replies
    • #1184876

      Depending on how you are moving the files, you may be able to run a BAT file that uses cacls or Icals to modify the file permissions after you have moved them.

      • #1184878

        Depending on how you are moving the files, you may be able to run a BAT file that uses cacls or Icals to modify the file permissions after you have moved them.

        Hi Stu,

        Thanks for the quick reply. I’m not quite familiar with cacls and Icals, can you elaborate a bit on that?? – please.

        In fact a BAT that applies “Full control” to all files found in the “Main” folder would be sufficient

        ;o)

        • #1184886

          To add full access rights for everyone to all files in a folder
          cacls c:folder* /e /g everyone:f

          For help on the command syntax
          cacls /?

    Viewing 0 reply threads
    Reply To: Folders – restricting access

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: