Score:0

How to mount on /mnt/ as non-root with gcsfuse

sl flag

Introduction

I am using gcsfuse to mount my Cloud Storage bucket as a filesystem in my Linux instance hosted on GCE.

Following the documentation from gcsfuse, it recommends to not use "root" to mount it, as the user who mounts the filesystem will be the owner. Hence, you won't be able to write or read objects as a normal user.

The mounting point that I intend to use is /mnt/, but it requires system administrator permissions and I would like to use a non-root user.

Question

How could I circumvent this limitation? I followed this other question, but to no avail.

Score:0
nr flag

I don't think, you will be able to mount the bucket inside /mnt folder without changing the ownership of /mnt dir.

Instead you can try by creating a folder inside /mnt/ and change the ownership of that folder, and then try mounting the bucket using gcsfuse.

Steps would be:

  1. cd /mnt
  2. sudo mkdir mount_bucket
  3. sudo chown : mount_bucket
  4. Mount the /mnt/mount_bucket with non-root user.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.