google / google/kctf

Solve the umask problem

Open
#100 9 comments 0 reactions 0 assignees View on GitHub
development p1 ux
Dominant language
Go
Stars
794
Forks
82
PR merge metrics
No merged PRs in 30d

Description

If you setup the wrong umask everything breaks. I wonder if we can detect this early on and fix it for the user somehow (or warn at least).

for now, here's what I'm doing to fix a `027` umask to `022`
```bash
find . | xargs stat -c '%a %n' | grep -v './.git' | awk '{print substr($1,0,2) substr($1,2,1) " " $2}' | xargs -I{} bash -c "chmod {}"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.