GoogleCloudPlatform / GoogleCloudPlatform/gsutil

how to set config path except change $HOME

Open
#1,415 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

sh is run by nobody. $HOME is "/".

python2 /usr/local/google-cloud-sdk/google-cloud-sdk/bin/bootstrapping/gsutil.py version -l

ERROR: (gsutil) Could not create directory [/.config/gcloud]: Permission denied.

Contributor guide

Open the contributing guide

Research direction

Start with the gsutil.py entry point and investigate how gsutil determines its configuration directory when HOME is "/". Reproduce the command as the nobody user and identify whether a supported writable config path can be selected without changing HOME; done means the command runs without the permission error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.