Closed cetanu closed 7 years ago
Apparently fixed by restarting the agent. Seriously...
This shouldn't happen, since the agent takes user or other mode changes into account, but not group? But I cbf to even go down the rabbit hole on this.
@cetanu — if you've changed the membership of any linux user or group, you're expected to restart any processes owned by user and/or group.
@ketan , yeah, something to keep in mind I guess. Although changing the mode for user/other seemed to have an impact. It was weird.
Issue Type
Bug Report
Summary
gocd agent, when executing a job, can't get permission to a file unless it has user or other mode set. Group permissions, even if correct, result in Permission Denied. Not reproducible via interactive shell, only via jobs.
Example setup:
If I then try to cat this file as part of a job, it will fail with Permission Denied. If I set
chmod o+r /random_file
, it will work, but then everybody has access to read the file.Basic environment details