Skip to content

Commit

Permalink
Fix s3fuse mount permission.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 698899626
  • Loading branch information
yuyantingzero authored and copybara-github committed Nov 21, 2024
1 parent db62b77 commit 5a13c0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion perfkitbenchmarker/linux_packages/optimize_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 5a13c0f

Please sign in to comment.