-
-
Save neilstuartcraig/b73ca085c22a0be41060f65174be0770 to your computer and use it in GitHub Desktop.
FSTab mount GCS bucket as specific user (www-data)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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