Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.
This repository was archived by the owner on May 27, 2024. It is now read-only.

checking OSR(Operating system files) permission #282

Description

@loginatgithub

Dear All,
Need help in correcting the below code for checking files permission. My objective is to check for GENERAL USER permission on files listed in loop. All General users has only permission "Read & Execute, List Folder Contents and Read "

  • name: Checking OSR Permissions on windows systems
    hosts: ALL

    become: yes
    tasks:
    name: checking OSR permission
    loop:
    - C:\Windows
    - C:\Windows\security
    - C:\Windows\System
    - C:\Windows\System32
    - C:\Windows\System32\drivers
    - C:\Windows\System32\spool
    - C:\Windows\System32\GroupPolicy
    - C:\Windows\WinSxS\Backup
    - C:\Windows\SysWOW64\drivers
    win_acl:
    path: "{{ item }}"
    user: Intern
    rights: Read,Write,Modify,FullControl,Delete
    type: allow
    state: present

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions