Skip to content

FEATURE: Allow umask to be changed via docker environment UMASK setting#1684

Open
louisjg wants to merge 1 commit into
agent0ai:mainfrom
louisjg:enable-umask-var
Open

FEATURE: Allow umask to be changed via docker environment UMASK setting#1684
louisjg wants to merge 1 commit into
agent0ai:mainfrom
louisjg:enable-umask-var

Conversation

@louisjg
Copy link
Copy Markdown
Contributor

@louisjg louisjg commented May 31, 2026

This change allows a user to specify a umask setting using a docker UMASK environment var.

The reason for this is because agent zero runs as root. When it writes files to the workspace, it writes them as root:root and the user outside the container cannot modify them.

One solution to this is to add the user to an "agentzero" group and use the setgid bit so whatever is written under /a0/usr belongs to a group the user has access to. However, since agent-zero uses a default umask of 022 the user still cannot write to these files.

By allowing the user to specify a umask of 002, the agent now writes files to /a0/usr that belong to the group via setgid and are writeable by the group via the umask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant