We can see that the output for this command from the above image that the permission for the file is set to be 644, due to this lack of permission the user got the permission denied error when tried to edit the file using FTP. So the command will be stat -c "%a %n" /etc/apache2/sites-available/nf In this scenario our file location is /etc/apache2/sites-available/nf. In order to check the file permissions for the user run the below command in the terminal stat -c "%a %n" /path to the file Just click on SSH button to connect the instance via SSH terminal. You can connect a VM instance in GCP by GCP -> Compute Engine -> VM Instances -> you can see SSH option in the right side of the instance section. For this first you have to connect the VM instance via SSH terminal. To fix this insufficient permission issue you need to edit the file’s permission in Google Cloud. The user getting permission denied error due to insufficient permission to edit the file nf file in GCP. When you try to edit the file, you will see an error as below Error: /etc/apache2/sites-available/nf: open for write: permission denied/ This permission denied error occurs when you trying to edit a file in GCP by using FTP. Our Google cloud support team will be available to assist you with any issues in Google Cloud Platform. Some of the users getting this “permission denied error” while trying to connect the Google Cloud files via FTP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |