Google Cloud Storage Buckets: Mounting in a Linux Instance with Global Permissions

Google Cloud Storage Buckets: Mounting in a Linux instance with Global Permissions

This is an expected behavior for GCSFuse you can override the permissions with -o allow_other flag as mentioned here:

Permissions and ownership

Inodes

By default, all inodes in a gcsfuse file system show up as being owned by the UID and GID of the gcsfuse process itself, i.e. the user who mounted the file system. All files have permission bits 0644, and all directories have permission bits 0755 (but see below for issues with use by other users). Changing inode mode (using chmod(2) or similar) is unsupported, and changes are silently ignored.

These defaults can be overriden with the --uid, --gid, --file-mode, and --dir-mode flags.

Fuse

The fuse kernel layer itself restricts file system access to the mounting user (cf. fuse.txt). So no matter what the configured inode permissions, by default other users will receive "permission denied" errors when attempting to access the file system. This includes the root user.

This can be overridden by setting -o allow_other to allow other users to access the file system. Be careful! There may be security implications.

Mount Google Cloud Storage Bucket to Instance

With the new beta gcsfuse this is now possible.

gcsfuse myBucket ~/path/to/mount

https://cloud.google.com/storage/docs/gcs-fuse

mounting bucket with fstab not working NEWBIE

Okay so I just had to wait 2 minutes due to google auth granting my key. Basically it works



Related Topics



Leave a reply



Submit