Skip to content

Instantly share code, notes, and snippets.

@neilstuartcraig
Forked from anonymous/gcs-fuse-mount-as-user
Last active September 5, 2017 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilstuartcraig/b73ca085c22a0be41060f65174be0770 to your computer and use it in GitHub Desktop.
Save neilstuartcraig/b73ca085c22a0be41060f65174be0770 to your computer and use it in GitHub Desktop.
FSTab mount GCS bucket as specific user (www-data)
<GCS BUCKET NAME (NO gs:// prefix)> <MOUNT POINT> gcsfuse ro,uid=33,gid=33,noatime,async,_netdev,noexec,user,implicit_dirs,allow_other 0 0
Example:
GCS Bucket name: a-test-bkt
Mount point: /mnt/atb
a-test-bucket /mnt/atb gcsfuse ro,uid=33,gid=33,noatime,async,_netdev,noexec,user,implicit_dirs,allow_other 0 0
NOTES:
implicit_dirs is the --implicit-dirs option which is required to allow the FS to show dirs - see https://github.com/googlecloudplatform/gcsfuse/blob/master/docs/semantics.md#implicit-directories
allow_other is required to allow non-root users to access the mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment