Getting permission denied on uploads only #2972
-
Hi everyone. I have an sftp vm in GCP with a bucket mounted to it using the gcsfuse. From the VM (in an SSH connection) I can upload and download files to the bucket directory, Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
GCSFuse is not recommended for use as a bucket in an SFTP server, and this is not a supported use case. Please refer to the file handle limits limitation here: https://cloud.google.com/storage/docs/cloud-storage-fuse/overview#expandable-1. GCSFuse defaults to file-mode 0644 and dir-mode 0755 for mounted files and directories. I suspect that the other user (the third-party client user in this case) does not have write permissions to your directory. You can use the Please refer to https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/semantics.md#permissions-and-ownership for more information. Let me know if this resolves the issue. |
Beta Was this translation helpful? Give feedback.
GCSFuse is not recommended for use as a bucket in an SFTP server, and this is not a supported use case. Please refer to the file handle limits limitation here: https://cloud.google.com/storage/docs/cloud-storage-fuse/overview#expandable-1.
GCSFuse defaults to file-mode 0644 and dir-mode 0755 for mounted files and directories. I suspect that the other user (the third-party client user in this case) does not have write permissions to your directory. You can use the
--file-mode
and--dir-mode
flags along with allow_other flag to set the appropriate permissions. Please note that GCSFuse does not support chmod and similar operations to control access.Please refer to https://github.com/GoogleC…