chmod 777 command in linux

C++
sudo chmod -R -f 777 /path/to/your/file/or/directory
chmod -R 777 your_directory_name

Source

Also in C++: