2017-04-24 80 views
0

最近我使用谷歌雲存儲服務來存儲一些文件。我已經使用Cloud Storage Fuse通過Google Compute Engine中的實例安裝它。當我嘗試在桶中運行我自己的腳本時,即使使用chmod a + x,也不允許這樣做。有什麼方法可以授權嗎?謝謝!如何在Google雲端存儲上運行腳本?

P.S.Below是我想要運行

mkdir -p PB_report_0208/shortest_path 
cp ./tag_1/shortest_path.csv ./PB_report_0208/shortest_path/shortest_path1.csv 

回答

1

按照documentation腳本,gcsfuse不跟蹤權限位,所以你chmod命令沒有做任何事情。您可以使用gcsfuse --file-mode給所有文件執行位(而不是在一個文件通過文件爲基礎)。