{"data":{"id":"1eafe095-b524-4018-88b2-74538208b5dd","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":"86d92dd4-c844-4ec3-ada8-17c3ade573d1","duplicate_of":null,"canonical_url":null,"source_url":null,"extra":{},"created_at":"2026-06-08T08:51:43.035Z","updated_at":"2026-06-08T08:51:43.035Z","tools":[{"slug":"codex","name":"Codex"}],"solutions":[{"id":"a9b0dc4b-4b7d-4ee2-9145-c15318a543bc","issue_id":"1eafe095-b524-4018-88b2-74538208b5dd","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-08T08:51:44.756Z","updated_at":"2026-06-08T08:51:44.756Z"}]}}