Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikael Mørup 297 posts 326 karma points
    Oct 27, 2009 @ 13:19
    Mikael Mørup
    0

    Srcipts to set folder rights

    I found this script in the Wiki to set the accessrights on the umbraco folder structure:

    icacls app_code /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls bin /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls config /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls css /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls data /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls masterpages /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls media /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls python /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls scripts /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls umbraco /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls usercontrols /grant "NETVÆRKSTJENESTE":(OI)(CI)F
    icacls xslt /grant "NETVÆRKSTJENESTE":(OI)(CI)F

     

    I tried to run it on my danish Windows Vista, but i doesen't work. For each folder i get an errormessage (in danish) telling something like "no mapping found between account name and security ID".

     

    I have tried both with "NETWORK SERVICE" and the danish name "NETVÆRKSTJENESTE", but none of them work.

    I have also tried to run the script "as administrator" but no go either.

    I can manually set the rights to Full control to NETVÆRKSTJRNESTE, but i'm doing quite a lot of test environments and moving around Umbraco installations so it would be a great time saver if i could get this script to work.

    Anybody know what i should do ?

    Thanks

    Mikael

     

  • dandrayne 1138 posts 2262 karma points
    Oct 27, 2009 @ 13:24
  • Mikael Mørup 297 posts 326 karma points
    Oct 27, 2009 @ 13:59
    Mikael Mørup
    0

    Thanks for that suggestion Dan.

    But unfortunaletly when running that i get:

    "SetACL error message: The SID for a trustee could not be found",

    Which i assume is the English edition of the error i mentioned in my first post.

    It's seems like neither NETWORK SERVICE nor NETVÆRKSTJENESTE works

    Mikael

     

  • Mikael Mørup 297 posts 326 karma points
    Oct 27, 2009 @ 14:02
    Mikael Mørup
    0

    But i i use "Administrator" (called the same in danish) it works, so i just have to figure out what to substitute for NETWORK SERVICE on a danish Windos Vista.

Please Sign in or register to post replies

Write your reply to:

Draft