{"data":{"id":"924d8480-e31e-4c5a-891d-4346c7cee042","slug":"codex-permission-denied-editing-files","title":"Codex gets permission denied when editing files","summary":"The Codex agent cannot write files due to permission or sandbox restrictions.","symptoms":["EACCES / permission denied on write","Edits silently fail to persist"],"error_signatures":["EACCES","permission denied","read-only file system"],"possible_causes":["Approval/sandbox mode restricts writes","Files owned by another user or root","Running outside the intended workspace directory"],"tags":["permissions","sandbox","filesystem"],"environment":null,"affected_versions":[],"status":"published","content_confidence":0,"verification_status":"unverified","created_by_type":"system","language":"en","translation_group_id":"e8fc8616-f004-45ee-a95a-d88155d5c82d","duplicate_of":null,"canonical_url":null,"source_url":null,"extra":{},"created_at":"2026-06-16T08:39:10.140Z","updated_at":"2026-06-16T08:39:10.140Z","tools":[{"slug":"codex","name":"OpenAI Codex"}],"solutions":[{"id":"1cc35b31-8dc4-40e4-beb7-deeee28738b3","issue_id":"924d8480-e31e-4c5a-891d-4346c7cee042","title":"Adjust approval mode and fix file ownership","summary":"Grant the agent write approval for the workspace and correct file ownership.","steps":["Run the agent in a mode that permits workspace writes.","Ensure the target files are owned by the current user.","Confirm the working directory is the intended project root."],"commands":["ls -la","whoami","sudo chown -R $(whoami) ."],"config_examples":[],"explanation":null,"risks":["chown changes ownership recursively — run it only inside the intended project directory."],"risk_level":"medium","verification_steps":["Ask the agent to write a small file and confirm it persists."],"verified_count":0,"failed_count":0,"source_type":"agent","status":"pending_review","language":"en","source_url":null,"extra":{},"created_at":"2026-06-16T08:39:10.460Z","updated_at":"2026-06-16T08:39:10.460Z"}]}}