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