Formula una domandaFormula una domanda
 

Con rispostaDCM Configuration Item for file or folder permissions

  • martedì 6 ottobre 2009 17.25Vamsi Varma Ganaraju Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     

    Hello

    I am creating a Configuration Item to Check permissions of a Folder on clients. In the Add "group or username" it only gives option for Domain\user.
    Is there a way we could add Local administrator or other local accounts of clients.
    Checked for similar questions but couldn't find any..

    Any pointers are appreciated. Thankyou !

Risposte

  • lunedì 26 ottobre 2009 15.35raymond hestres Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    the only other option is to check for the Builtin accounts by using for example "Builtin\administrator".
    What I have used to check for local permission is a powershell script created under settings
    this one checks that "everyone" does not have any rights to the folder: 
    $null -eq (get-acl "e:\logfiles"| % {$_.access} |where {$_.identityreference -eq "everyone"})

    this one checks that the group "data_rw" has modify rights on the folder
    (get-acl "e:\data"| % {$_.access} |where {$_.identityreference -like "*data_rw"}| % {$_.filesystemrights}) -like "*modify*"

    then just set the validation to true.

    Hope this helps

Tutte le risposte

  • lunedì 26 ottobre 2009 15.35raymond hestres Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    the only other option is to check for the Builtin accounts by using for example "Builtin\administrator".
    What I have used to check for local permission is a powershell script created under settings
    this one checks that "everyone" does not have any rights to the folder: 
    $null -eq (get-acl "e:\logfiles"| % {$_.access} |where {$_.identityreference -eq "everyone"})

    this one checks that the group "data_rw" has modify rights on the folder
    (get-acl "e:\data"| % {$_.access} |where {$_.identityreference -like "*data_rw"}| % {$_.filesystemrights}) -like "*modify*"

    then just set the validation to true.

    Hope this helps
  • mercoledì 28 ottobre 2009 14.56jlozan Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    great information!  the "data_rw" group that you mention above, is that a local group?

    My environment is all server 2003 - do I need to install powershell on the member servers for this to work?

    also, where do I set the validation to "true"?  I don't see true as an option.

    new to this - so appreciate the help with newbie questions.
  • venerdì 30 ottobre 2009 14.20raymond hestres Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    Glad to help.
    the "data_rw" is a local group.
    When you run DCM, the commands are running local to that machine, so you would need powershell installed on the PC you are checking. You could probably convert the above code to vscript and use xcals.

    The important thing with DCM checks is that the output of whatever you write is what the validation is checked against. So if the output is either a true or false the you validate for that. I have also used it on the past to check the correct version of an installed program.

    When you create your script under settings, there is a validation tab. Click "new" and enter "equals true". This way if the rights exists the output of the script is true adn it validates.
  • giovedì 5 novembre 2009 19.35Vamsi Varma Ganaraju Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    Raymond,

    Thanks for the response. :)