Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

How to ls google drive shared folders without elevated permissions?

$
0
0

I have a Google drive folder shared with me and have added it to "My Drive" as a shortcut. I need to be able to list and compute on its contents with a script without elevated permissions from WSL 2.

I can ls and access the normal contents of google drive directories just fine under /mnt/g

I see the folder at the location/mnt/g/.shortcut-targets-by-id/1yijRzqC7kODxqq4LRBhHFRyJXqZOMOEO/theSharedFolder

But I am only able to ls .shortcut-targets-by-id and all of its subdirectories with elevated permissions (sudo). (I can ls the individual files in theSharedFolder without elevated permissions, but only once I know their exact names.) This is a problem, since I similarly then cannot list the contents within my script (python::os.listdir or python::pathlib::Path::iterdir).

An ls -ld shows these folders have 'd--x--x--x', unsurprisingly. But if I attempt to add read permissions with chmod a+r, I get

chmod: changing permissions of '/mnt/g/.shortcut-targets-by-id/': Function not implemented

I would like to find an alternative to running my script with elevated permissions just to list this directory.


Viewing all articles
Browse latest Browse all 12141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>