Change permission of directories
cd /var/files/test
find -type d -exec chmod 0777 {} \;
Change owner of files in dir
cd /var/files
find test -type f -exec chown user {} \;
- Tags
- bash
cd /var/files/test
find -type d -exec chmod 0777 {} \;
cd /var/files
find test -type f -exec chown user {} \;