I'm working on it since a few hours but I'm not able to get it working.
I successfully mounted an existing GCS bucket (my-bucket) on a running instance. I, with my_user, am able to list and copy files from the mounted bucket. Now another user on the same machine needs to list and copy files form the same mounted bucket but he gets a "permission denied" error message.
I read the Access Permission section here. So I tried as follows:
- Created a group named "bucket-users": sudo groupadd bucket-users
- Added existing users: sudo useradd -G bucket-users user_name
- Mounted the bucket using --gid option: gcsfuse --gid 1008 my-bucket /mnt/my-bucket
- Mounted successfully:
$ ls -ltr $ drwxr-xr-x 1 my_user bucket-users 0 Sep 16 09:11 my-bucket
Result: I am able to work on the bucket, but other users from the group "bucket-users" aren't.
Where am I going wrong here?
Thanks!