Google Cloud Shell中的主目录共享访问 [英] Shared Access for Home Directory in google cloud Shell

查看:197
本文介绍了Google Cloud Shell中的主目录共享访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用Google Cloud Shell,并且希望访问其他用户的永久磁盘. (不使用本地shell)

I am currently using the Google Cloud Shell, and I wish to access the persistent disk of another user. (Not using local shell)

有关查询主题的更多信息:

More info on topic of inquiry: https://medium.com/google-cloud/no-localhost-no-problem-using-google-cloud-shell-as-my-full-time-development-environment-22d5a1942439

推荐答案

Cloud Shell是一款专用于您的微型vm,免费且带有已安装的个人磁盘.

Cloud Shell is a micro vm dedicated to you, free, and with a mounted personal disk.

已编辑:感谢@Johnhanley评论,您可以使用

EDITED: Thanks to @Johnhanley comment, you can access to the cloud shell file of someone else with this code provided. However, you need the credential of the target Cloud Shell env and it's not very secure and recommended.

但是,您可以安装保险丝目录.并且其他用户也.使用保险丝,您可以在目录中的存储桶中导航.但请注意,存储桶不是文件系统:性能和使用情况并不相同.此外,在同时使用文件的情况下,Fuse不能保证数据的完整性,特别是在编写并发时.谨慎使用.

However, you can mount a fuse directory. And the other user also. With fuse, you navigate in a bucket like in directory. But be carefull, Storage bucket is not a file system: performance and usage aren't the same. Moreover, Fuse don't guaranty the data integrity in case of simultaneous file use, especially writing concurrency. Use with precaution.

但是,如果需要,您可以有一个公共工作区.

But you can have a common workspace if it's your requirement.

如果将Cloud Shell用作开发环境(例如计算机或VM),则将应用相同的最佳实践.必须将开发环境视为短暂环境(计算机可能断电或丢失/被盗,人们可以离开公司,并且您不再有权访问其云外壳),因此,您必须经常将资源保存在安全的空间中( Git存储库,带有保险丝的云存储)

If you use Cloud Shell as dev environment, like a computer or a VM, the same best practice are to apply. The dev environment has to be considered as ephemeral (computer can have outage or be lost/stolen, People can leave a company and you no longer have access to their cloud shell), and thereby you have to save your sources frequently on safe space (Git repository, Cloud Storage with Fuse)

这篇关于Google Cloud Shell中的主目录共享访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆