gsutil "Permission denied"

3,176 views
Skip to first unread message

Anjanesh

unread,
Sep 27, 2012, 7:22:20 AM9/27/12
to gsutil-...@googlegroups.com
I don't know why all of a sudden I get Permission denied when accessing gsutil.

~$ gsutil ls
bash: ~/gsutil/gsutil: Permission denied

I even chmod'ed ~/gsutil/gsutil to 777

Any reason why I can possibly get "Permission denied" ?

Thanks

Mike Schwartz (Google Storage Team)

unread,
Sep 27, 2012, 10:11:45 AM9/27/12
to gsutil-...@googlegroups.com
Hi Anjanesh,

Are you by any chance running gsutil from an alias? If so, what is the alias definition?

What happens if you specify the fully qualified path to gsutil, e.g.,
/home/anjanesh/gsutil/gsutil ls

(I'm just using the above path guess as an example; please use the real path instead).

If that doesn't work, can you please send us the output from running these commands:

ls -lg ~/gsutil/gsutil
whomai

If you'd prefer not to post those things on the public list you can send to gs-...@google.com.

Thanks,

Mike Schwartz
Google Cloud Storage team

Anjanesh

unread,
Sep 28, 2012, 5:39:10 AM9/28/12
to gsutil-...@googlegroups.com, gs-...@google.com
Sorry about this. This was clearly a permission issue, not a gsutil one.
On doing ls -lg ~/gsutil/gsutil it showed -rw-rw-rw- 1 anjanesh
It was not marked executable for some odd reason.
I was working around it by doing python /home/anjanesh/gsutil/gsutil <cmd>
Thanks. Resolved.
Reply all
Reply to author
Forward
0 new messages