Setting the allow_other Option in a Config File #3135
Replies: 6 comments 3 replies
|
As I'm digging through this and trying different settings, I noticed something odd. If I remove the "rw" from fuse-options line in my .yaml file, that option still gets applied when mounted.
The "rw" isn't in my /etc/fstab line. Wondering where that's coming from...is it the default? |
|
Just for kicks, I changed the rw in the yaml file to "ro" and that's not being applied either. Hoswever, if I add the "ro" option ot the /etc/fstab line, then it does get applied. It doesn't appear that any of the fuse-options are being read from the .yaml file? |
|
GCSFuse applies settings in a specific order: The main issue arises when using Because of this high priority, these /etc/fstab options will override any conflicting settings that is defined specifically within the It's important to know that only the Workaround:
|
|
This seems like something that we can solve in the GCSFuse layer, I've raised a PR to fix it |
|
Thanks @vipnydav and @ashmeenkaur for your responses. I have left the allow_other flag in the /etc/fstab lines for now. This shouldn't be a problem moving forward since it's just the one flag. I have put the longer variables in the /etc/gcsfuse.yaml config file and they're working fine. Thanks, Bill |
|
PR merged and will be part of our next release. Thanks @dbq-andersons! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi Everyone,
Still pretty green at this stuff, but gcsfuse is solving a pretty big problem I was having, so happy it's around.
I have entries similar to these in an /etc/fstab file on a Google Cloud VM and they are working very well.
However, as I'm starting to look at dabbling in cache settings and whatnot, I'd like to move all common settings to an /etc/gcsfuse.yaml config file and call that from /etc/fstab with something like this:
Here's my config file (/etc/gcsfuse.yaml).
Most of those configs work fine and are being picked up. However, the allow-other option is not being applied. Here's a snippet from the mount command output showing that the "rw" option is getting picked up and I have confirmed I can write to the file system as root.
"FileMode":"664","FuseOptions":["rw"],"Gid":33,If I leave allow_other in the fstab line, here's the relevant area of that output.
"FileMode":"664","FuseOptions":["rw","allow_other"],"Gid":33,Among a few other things, I have tried allow_other. I have also tried just dropping that setting raw in the .yaml file on a line by itself (IIRC, it wouldn't even mount then).
I could leave allow_other in the /etc/fstab lines, but it's vexing me as to why this won't work. I'm guessing I have something wrong with where I'm putting it or something similar, but I can't find anything in the docs to point me in the right direction.
Any ideas?
Bill
All reactions