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

checking OSR(Operating system files) permission #282

Open
loginatgithub opened this issue Sep 7, 2020 · 0 comments
Open

checking OSR(Operating system files) permission #282

loginatgithub opened this issue Sep 7, 2020 · 0 comments

Comments

@loginatgithub
Copy link

loginatgithub commented Sep 7, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant