Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

recursively change file permissions linux

find /var/www/html -type d -exec chmod 755 {} ;find /var/www/html -type f -exec chmod 644 {} ;
Comment

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"
Comment

PREVIOUS NEXT
Code Example
Shell :: redis quicstart 
Shell :: vscode connect gitlens to gitlab 
Shell :: uninstall yarn 
Shell :: git config global credential cache 
Shell :: How to remove Directories with rm 
Shell :: git stash error: unknown switch `e‘ 
Shell :: git rollback 
Shell :: reinstall settings app ubuntu 
Shell :: docker sh: react-scripts: not found 
Shell :: Git Error: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
Shell :: how to kill running process in linux 
Shell :: awk if column greater than 
Shell :: execution policy powershell single script 
Shell :: create new git branch and switch to it 
Shell :: grep count words 
Shell :: how to use /dev/urandom 
Shell :: -----Mg: *scratch* (fundamental)----All-------------------------------------------------------------------------------- 
Shell :: how to check ssh version 
Shell :: preserve permissions tar 
Shell :: bash if statement 
Shell :: ls order by filename length 
Shell :: heroku cli 
Shell :: add directory to path on linux 
Shell :: make directory to be owned by group ubuntu 
Shell :: avro for debian 
Shell :: docker compose up 
Shell :: git stash apply previous 
Shell :: bash convert seconds to date 
Shell :: gem install to a different directory linux 
Shell :: how to disable a user linux 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =