Skip to content

Commit

Permalink
Fix s3fuse mount permission.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 694307870
  • Loading branch information
yuyantingzero authored and copybara-github committed Nov 21, 2024
1 parent db62b77 commit 6dc8a5c
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 6dc8a5c

Please sign in to comment.