how to change permission to 777 in linux code example Example: ubuntu change permissions 777 sudo chmod -R 777 /var/www