From 5a13c0f0781952fb23181806cb3e6f4f32607778 Mon Sep 17 00:00:00 2001 From: Yanting Yu Date: Thu, 21 Nov 2024 13:38:08 -0800 Subject: [PATCH] Fix s3fuse mount permission. PiperOrigin-RevId: 698899626 --- perfkitbenchmarker/linux_packages/optimize_gpu.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/perfkitbenchmarker/linux_packages/optimize_gpu.py b/perfkitbenchmarker/linux_packages/optimize_gpu.py index 7f4aa80f9..1cd61291b 100644 --- a/perfkitbenchmarker/linux_packages/optimize_gpu.py +++ b/perfkitbenchmarker/linux_packages/optimize_gpu.py @@ -48,7 +48,14 @@ def MountFuse(vm, bucket, path): f' {bucket} {path}' ) elif FLAGS.cloud == 'AWS': - vm.RemoteCommand(f'sudo mount-s3 {bucket} {path}') + vm.RemoteCommand( + 'sudo sed -i "s/#user_allow_other/user_allow_other/g" /etc/fuse.conf' + ) + vm.RemoteCommand( + 'mount-s3 --allow-delete --allow-other --allow-overwrite ' + f'{bucket} {path}' + ) + else: raise NotImplementedError()