Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Recursively set directory and file permissions

- name: recursive chmod example
  command: |
    chmod -c -R ug=rw,o=r,a-x+X "{{item}}"
  register: chmod_status
  changed_when: chmod_status.stdout != ""
  with_items:
    - "/home/user/sample/dir"
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #Recursively #set #directory #file #permissions
ADD COMMENT
Topic
Name
2+7 =