Change folder and subfolders
Recursively change the permission
$ chmod -R 0777 *
$ chmod -R 0777 /home/user/demo
Change files
A. To change file access permissions you use chmod command. It has -R or -recursive option that change files and directories recursively. For example
$ chmod -R 0755 directoryHowever, if you need to apply conditional file permissions recursively use combination of find and chmod command.
Find all files in /home/user/demo directory
$ find /home/user/demo -printNow find all files in /home/user/demo directory with permission 777
$ find /home/user/demo -perm 777 -printNext you need to apply chmod on all these files using -exec option:
$ find /home/user/demo -perm 777 -print -exec chmod 755 {} \;


SnowTweet
Xe Dap Oi !