title: How to mount Google Bucket as local disk on Linux instance with full access rights
body: <p>Using five lines below install <code>gcsfuse</code> on a brand new Ubuntu14 instance:</p>
  
  <pre><code>export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`
  echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list
  curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
  
  sudo apt-get update
  sudo apt-get install gcsfuse
  </code></pre>
  
  <p>Now create a folder on a local disk (this folder is to be used as the mounting point for <code>Google Bucket</code>). Give this folder a full access:</p>
  
  <pre><code>sudo mkdir /home/shared 
  sudo chmod 777 /home/shared 
  </code></pre>
  
  <p>Using <code>gcsfuse</code> command mount Google bucket to the mounting-point folder we created earlier. But first, list the names of the Google Buckets that are linked to your Google Project:</p>
  
  <pre><code>gsutil ls
  </code></pre>
  
  <p>The Google Project I work on has a single bucket named "my_bucket". Knowing a bucket name I can run <code>gcsfuse</code> command that will mount <code>my_bucket</code> Bucket on to a local <code>/home/shared</code> mounting-folder:</p>
  
  <pre><code>gcsfuse my_bucket /home/shared 
  </code></pre>
  
  <p>The execution of this command logs that it was successful:</p>
  
  <pre><code>Using mount point: /home/shared
  Opening GCS connection...
  Opening bucket...
  Mounting file system...
  File system has been successfully mounted.
  </code></pre>
  
  <p>But now when I try to create another folder inside of mapped <code>/home/shared</code> mounting-point folder I get the error message:</p>
  
  <pre><code>mkdir /home/shared/test
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>mkdir: cannot create directory ‘/home/shared/test’: Input/output error
  </code></pre>
  
  <p>Trying to fix the problem I successfully <code>un-mount</code> it using:</p>
  
  <pre><code>fusermount -u /home/shared
  </code></pre>
  
  <p>and map it back but now using another <code>gcsfuse</code> command-line:</p>
  
  <pre><code>mount -t gcsfuse -o rw,user  my_bucket /home/shared
  </code></pre>
  
  <p>But it results to the exactly same permission issue.</p>
  
  <p>At very last I have made an attempt to fix this permission issue by editing <code>/etc/fstab</code> configuration file with:</p>
  
  <pre><code>sudo nano /etc/fstab
  </code></pre>
  
  <p>and then appending a line to the end of the file:</p>
  
  <pre><code>my_bucket /home/shared gcsfuse rw,noauto,user
  </code></pre>
  
  <p>but it did not help to solve this issue.</p>
  
  <p>What needs to be changed to allow all the users a full access to the mapped Google Bucket so the users are able to create, delete and modify the files and folders stored on Google Bucket?</p>