One Page Zen

Web Design. Simplified.

  • Tutorials
    • Google Cloud
    • Amazon Cloud
    • Microsoft Cloud
  • Start
  • Resources

How to Fix SSH (Linux Shell) Permission Errors on Google Cloud

November 12, 2020 Leron Amin 3 Comments

FacebookTweetLinkedInEmail

Are you getting Insufficient Permission errors when trying to edit your website files on Google Cloud Platform?

In this tutorial you will learn two methods to fix common insufficient permission errors that occur when editing website files in the Google Cloud Platform Linux SSH shell. If you’re getting Insufficient Permission errors when using FTP, use this tutorial here.

Before starting this tutorial, you should have already launched a website on Google Cloud Platform.

There are 2 methods in this tutorial:

  • 1. User Method
  • 2. Command Method

1. User Method

The first and easiest method of avoiding Insufficient Permission errors is by executing commands as a root user.

To obtain root permissions for an entire session, enter the following command in the terminal:

sudo -i
ssh linux permission errors google cloud
In the image above, the command sudo -i changes the user from tutstest to root, thereby instilling the user with the required permissions to edit the default-ssl.conf file.

2. Command Method

The second method of avoiding Insufficient Permission errors is by executing individual commands with root permissions.

To execute individual commands with root permissions, type sudo before the command:

sudo YOUR_COMMAND
ssh linux permission errors google cloud
In the image above, the command sudo is included before the service apache2 restart command in order to instill the necessary (root) permissions required to restart the Apache server.

Did it Work?

With the use of these commands, you should be able to avoid insufficient permission errors in the future.

If you have any questions or comments, please post them below!

Thanks,

Up Next…

ssh linux permission errors google cloud
Manage WordPress Files on Google Cloud Platform (Beginner)
ssh linux permission errors google cloud
Manage WordPress Files on Google Cloud Platform (Advanced)

Related Posts

  • SSL Certificate Setup for WordPress on Google Cloud (Bitnami)
  • How to Migrate WordPress to Google Cloud (Full Guide)
  • Domain Name Configuration for WordPress on Google Cloud
  • SSL Certificate Setup for WordPress on Google Cloud (Click-to-Deploy)
  • The Most Important Linux Commands (With Examples)
  • Add Expires Headers for WordPress on Google Cloud (Bitnami)
FacebookTweetLinkedInEmail

Filed Under: GCP Networking, Google Cloud Platform Tagged With: command-line-interface, gcp, google cloud, linux, permission errors, permissions, ssh

Comments

  1. Bimbimz says

    November 14, 2017 at 5:54 am

    How create a new directory and delete file/folder in SSH with command line ?

    Thx

    Reply
    • Leron Amin says

      November 14, 2017 at 9:27 am

      Hi Bimbimz,

      The command to make a new directory is mkdir.
      The command to delete a file or directory is rm.

      Check out this post for more information about the most commonly used Linux commands with examples of their use.

      Talk to you soon,
      Joe

  2. Leron Amin says

    August 27, 2017 at 11:10 am

    What did you think of this tutorial?
    Leave your questions and comments below!
    Thanks,
    Joe

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Want Exclusive Tutorials?

Welcome to One Page Zen!

Through this blog I hope to introduce web developers to cloud computing!

author-bio

facebook-support-group kinsta-cloud-hosting

Want Exclusive Tutorials?


Contact | Sitemap | Legal | Privacy Policy | Affiliate Disclosure
      Copyright © 2017 - 2019 One Page Zen
Share this Article

Email sent!