How to Change file Access Permission | Google cloud

You have a WordPress website on Google cloud, And you want to make any type of changes but not have permission. So use give command on your server terminal and change access permission.

How to Do

  • Open server’s terminal and login.
  • Now check your current access status using stat -c “%a %n” /var/www/html/ command.
  • If showing 755. It means you don’t have access permission. So use given command for read and write permission.
  • Use command for give access permission.
sudo chmod 777 /path/
example - sudo chmod 777 /var/www/html/
  • When you complete any type of changes then turn off access permission using given command.
sudo chmod 755 /path/
example - sudo chmod 755 /var/www/html/

This code tested by me. I hope this code will work on your project. Thanks for visiting.