skypilot-users

How can I overcome the permission issue when mounting an R2 to a mount point using sudo?

I am getting a permission error when trying to mount an R2 to a mount point /tools using sudo. How can I resolve this?

Ke

Kenady Inampudi

Asked on Dec 06, 2023

To overcome the permission issue when mounting an R2 to a mount point using sudo, you can try adding sudo to the source code where the mounting command is constructed. Specifically, you can modify the sky.data.storage.R2Store.mount_command() function. However, please note that this may change the permission requirements for the /tools directory, as it will be mounted with sudo. Additionally, it is worth considering whether there is a specific need to set the directory at /tools instead of /home/ubuntu/tools.

Dec 19, 2023Edited by